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 ~
127.1.1.1: mail.mydomain1.com
127.1.1.2: mail.mydomain2.com
...

3. Edit /etc/mail_reverse_dns like:

127.1.1.1: mail.mydomain1.com
127.1.1.2: 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.



eb110kAsked:
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)...
0
 
nociSoftware EngineerCommented:
according to the WMH doc:
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EximDifferentIps

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

mydomain1.com: 127.1.1.1
mydomain2.com: 127.1.1.2

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

mail.mydomain1.com: 127.1.1.1
mail.mydomain2.com: 127.1.1.2

What am I missing?
0
 
eb110kAuthor Commented:
Thank you.
0
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.