WHM Exim configuration Problem

Hello, I'm a beginner of linux server administration and using WHM to manage my server.
Everything works fine, but I'm having a problem with sending email through Exim.
I have 4 domain (account) names in my server.

What I'd like to do is that:

Allow users to send mail through their domain name like mail.mydomain.com with authentication (maybe account's login ID and password, but it hasn't configured yet and don't know how).

I went to "Exim Configuraiton Editor" of WHM and changed followin:

1. Check on Automatically send outgoing mail from the account's IP address instead of the main IP address. Warning: If you turn this setting on you should make sure reverse DNS entries match the ones in /etc/mail_reverse_dns.

2. create /etc/mailhelo and /etc/mailips like:

mailhelo ~
mydomain1.com: mail.mydomain1.com
mydomain2.com: mail.mydomain2.com

mailips ~ mail.mydomain1.com mail.mydomain2.com

3. Edit /etc/mail_reverse_dns like: mail.mydomain1.com mail.mydomain2.com

And I restarted Exim. It doesn't work like what I expected (I knew it).

All the "mail.mydomain~.com" is valid and working by the way.

Please someone help.

Thank you.

Who is Participating?
nociSoftware EngineerCommented:
It should be the domain name not the mailserver name....
(it specifies what source address to use if a mail is sen from a certain domain...
so the mail. should be removed)...
nociSoftware EngineerCommented:
according to the WMH doc:

Your layout of mailips is wrong...
it should be:


It controls which ip address should be used when connecting outward....
eb110kAuthor Commented:
Thank you for your advise.
I described wrong. My mailips configured as like


What am I missing?
eb110kAuthor Commented:
Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.