sending mail on ubuntu through sendmail
Christopher Chan
christopher.chan at bradbury.edu.hk
Wed Oct 20 01:17:58 UTC 2010
On Wednesday, October 20, 2010 09:09 AM, Stephen S. Disbrow wrote:
> Hi,
> how do I configure sendmail so that I can use sendmail to actually send
> mail.
> my ubuntu 10.10 host's static IP is 192.168.1.20, and it's on a router
> connected to a cable modem. I think my cable company will only allow
> smtp mail to go through one of there servers smtp.charter.net. How do I
> configure my machine to allow programs to send mail via the sendmail
> deamon to the outside internet world?I know I'm supposed to modify items
> in sendmail.mc and than do a make in /etc/mail , and restart sendmail
> via init.d, but I'm not sure what I should be modifying
> Steve D. (hopelessly lost.)
>
Just edit /etc/mail/sendmail.cf and append the smtp.charter.net to the
DS on the line that starts with DS.
eg:
From
# "Smart" relay host (may be null)
DS
To
# "Smart" relay host (may be null)
DSsmtp.charter.net
Or
# "Smart" relay host (may be null)
DS192.168.1.1
Oh yeah...you have a nice internal static ip but I suspect it is really
an internal dynamic ip from your router so do not use 192.168.1.1...it
is just an example.
More information about the ubuntu-users
mailing list