?
Solved

WHM Exim configuration Problem

Posted on 2010-01-06
4
Medium Priority
?
860 Views
Last Modified: 2013-12-15
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.



0
Comment
Question by:eb110k
  • 2
  • 2
4 Comments
 
LVL 41

Expert Comment

by:noci
ID: 26199746
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
 

Author Comment

by:eb110k
ID: 26206947
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
 
LVL 41

Accepted Solution

by:
noci earned 2000 total points
ID: 26264380
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
 

Author Closing Comment

by:eb110k
ID: 31673853
Thank you.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question