wengcheok
asked on
Basic Sendmail Configuration question?
Hi,
I am new to Sendmail. We have a MMDF email server. We would like to replace it with sendmail. Now, I have RH 7.2 and sendmail 8.11.6-3 installed. May anyone give me some help on setting up sendmail? What steps I should do first? What files I need to modify? I was able to send email from root@localhost.localdomain to dennis@mycompany.com
Our ISP is holding the SMTP and DNS server. I need to set up the Linux box as POP3 server and Email Server. Thank you in advance! -Dennis
I am new to Sendmail. We have a MMDF email server. We would like to replace it with sendmail. Now, I have RH 7.2 and sendmail 8.11.6-3 installed. May anyone give me some help on setting up sendmail? What steps I should do first? What files I need to modify? I was able to send email from root@localhost.localdomain
Our ISP is holding the SMTP and DNS server. I need to set up the Linux box as POP3 server and Email Server. Thank you in advance! -Dennis
don't forget to list the ip addresses that are allowed to relay in /etc/mail/access and restart sendmail
Otherwise Samri seems to have the perfect answer....
Otherwise Samri seems to have the perfect answer....
ASKER
Samri,
I followed your instruction to change couple things in the /etc/mail/sendmail.mc
dnl DAEMON_OPTIONS(`Port=smtp, Addr=127.0 .0.1, Name=MTA')
In addition, I enable those too.
TRUST_AUTH_MECH(`DIGEST-MD 5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISM S', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(delay_checks)dnl
Cwlinuxserver.mydomain.com
DMmydomain.com
I also add this in /etc/mail/access
200.10.10.0 RELAY
and those two lines in /etc/mail/local-host-names
MyDomainName.com
MyDomainName
I was able to telnet localhost 110
+OK POP3 linuxserver server ready
I was able to mail dennis@mydomain.com
But, I was not able to reply to root@localhost.localdomain
Again, I do not need to configure any SMTP and DNS. Our ISP should take care of those. What steps I should do? Thanks for your input! –Dennis
I followed your instruction to change couple things in the /etc/mail/sendmail.mc
dnl DAEMON_OPTIONS(`Port=smtp,
In addition, I enable those too.
TRUST_AUTH_MECH(`DIGEST-MD
define(`confAUTH_MECHANISM
FEATURE(delay_checks)dnl
Cwlinuxserver.mydomain.com
DMmydomain.com
I also add this in /etc/mail/access
200.10.10.0 RELAY
and those two lines in /etc/mail/local-host-names
MyDomainName.com
MyDomainName
I was able to telnet localhost 110
+OK POP3 linuxserver server ready
I was able to mail dennis@mydomain.com
But, I was not able to reply to root@localhost.localdomain
Again, I do not need to configure any SMTP and DNS. Our ISP should take care of those. What steps I should do? Thanks for your input! –Dennis
Dennis,
could you send mail to root@mydomain.com, or even root@host.mydomain.com.
When you said you were unable to send mail to root@localhost.localdomain , did you do this from the server itself, or from your workstation using a mail client (eudora for example).
One possibilities would be Masquerading is not working for user root, check th CE option in sendmail.cf, and try to comment it, and restart sendamil ("service sendmail restart", or "/etc/init.d/sendmail stop" and "/etc/init.d/sendmail start");
You might want to check out Sendmail websites on this issue (rather than I cut-and-paste).
http://www.sendmail.org/m4/masquerading.html
You should be able to use the options in sendmail.mc, and rebuild the sendmail.cf.
# cd /etc/mail
# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
I hope this works
could you send mail to root@mydomain.com, or even root@host.mydomain.com.
When you said you were unable to send mail to root@localhost.localdomain
One possibilities would be Masquerading is not working for user root, check th CE option in sendmail.cf, and try to comment it, and restart sendamil ("service sendmail restart", or "/etc/init.d/sendmail stop" and "/etc/init.d/sendmail start");
You might want to check out Sendmail websites on this issue (rather than I cut-and-paste).
http://www.sendmail.org/m4/masquerading.html
You should be able to use the options in sendmail.mc, and rebuild the sendmail.cf.
# cd /etc/mail
# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
I hope this works
be looking in your /var/log/maillog and let us know what it says
should'nt it be
200.10.10. RELAY
What do you have in your /etc/hosts file?
should'nt it be
200.10.10. RELAY
What do you have in your /etc/hosts file?
ASKER
Hi,
Sorry for the confusion, we still have our MMDF mail server running. So, if I send to root@mydomain.com. That goes to our MMDF root account, but not Sendmail root account. My question is how do I reply to Linux machine. I know the POP3 is ready. What other steps I should do in order for Sendmail retrieve incoming email.
I was able to send email by do this
On the linux box, logon as user dennis
# mail dennis@yahoo.com
I got it in my yahoo mailbox. It was coming from dennis@localhost.localdoma in (Linux Sendmail). Is there a file I can change that to dennis@linuxserver.mydomai n.com?
In addition, what other configurations I need to do on these /etc/mail/access and /etc/mail/local-host-names files?
Thanks again for all your inputs! -Dennis
Sorry for the confusion, we still have our MMDF mail server running. So, if I send to root@mydomain.com. That goes to our MMDF root account, but not Sendmail root account. My question is how do I reply to Linux machine. I know the POP3 is ready. What other steps I should do in order for Sendmail retrieve incoming email.
I was able to send email by do this
On the linux box, logon as user dennis
# mail dennis@yahoo.com
I got it in my yahoo mailbox. It was coming from dennis@localhost.localdoma
In addition, what other configurations I need to do on these /etc/mail/access and /etc/mail/local-host-names
Thanks again for all your inputs! -Dennis
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Please delete this question. Thanks!
ASKER
Please close this question and refund the points! Thx!
First you need to make sure that the MX (Mail Exchanger) entry is pointing to your new RH machine.
Next, edit the file /etc/mail/sendmail.cw, and add the your domain, or/and any other domain that you would be receiving mail for.
If this server will be acting as outgoing SMTP server, you might want to take a look at masquerading feature. The quickest way would be adding the "DMyourdomain.com", in /etc/mail/sendmail.cf.
Alternately you can add the line in /etc/mail/sendmail.mc
DOMAIN(yourdomain.com)dnl
Next is to enable sendmail to accept incoming connection
From jlevie's comment:
https://www.experts-exchange.com/questions/20150630/Beginners-Question.html
----
Uncomment the following line in the /etc/sendmail.mc
DAEMON_OPTIONS(`Port=smtp,
and build & install a new sendmail.cf with:
# cd /etc/mail
# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
----
Some PAQ that you might want to look at;
https://www.experts-exchange.com/questions/20150630/Beginners-Question.html
https://www.experts-exchange.com/questions/20137325/Cannot-connect-to-port-25.html
Next is to enable pop3 clients to connect to your machine;
Excellent tutorial here;
http://www.yolinux.com/TUTORIALS/LinuxTutorialMailRetrieval.html
briefly:
# chkconfig ipop3 on
Make sure you have pop3 package installed. I think it is bundled together with imap pkg.
I hope the information is helpful.