Trouble configuring sendmail to relay mail
Posted
by
Warren Schubert
on Server Fault
See other posts from Server Fault
or by Warren Schubert
Published on 2013-10-23T15:08:07Z
Indexed on
2013/10/23
15:56 UTC
Read the original article
Hit count: 283
I am trying to configure sendmail and ufw on an ubuntu server (ServerA) so that another server (ServerB) can send mail through it. In my /etc/mail/access file I have the following line (a.b.c.d is the IP of ServerB):
Connect:a.b.c.d RELAY
My ufw status shows the following rule I added:
25/tcp ALLOW a.b.c.d
When I telnet from ServerA I get through:
telnet localhost 25
When I telnet from ServerB I don't (w.x.y.z is the IP of ServerA):
telnet w.x.y.z 25
telnet: Unable to connect to remote host: Connection refused
I did restart the sendmail daemon after editing the access file.
What could I be missing? Something in sendmail.mc?
Edit:
netstat -an|grep -w 25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
© Server Fault or respective owner