1827439 Members
5725 Online
109965 Solutions
New Discussion

Mail Relay

 
Leovino A. Trinidad, Jr
Frequent Advisor

Mail Relay

Hi all!

I'm trying to configure a mail relay server using sendmail 8.12.8. Unfortunately, the relaying would not work. What seems to be the problem?

Regards,


LAT
11 REPLIES 11
Alexander Chuzhoy
Honored Contributor

Re: Mail Relay

did you insert the line in
/etc/mail/access

allowing relay for domain for which you're trying to enable it?


after inserting this line you should restart the sendmail service or to run "make" from within /etc/mail



Leovino A. Trinidad, Jr
Frequent Advisor

Re: Mail Relay

Hi Alex!

Yes, I already configured the access file and even the relay-domains.

Regards,



LAT
Alexander Chuzhoy
Honored Contributor

Re: Mail Relay

are you able to connect to your mail server's IP address via port 25 ?

I mean did you configure it to listen on it's actual IP (not the loopback)?

in /etc/mail/access the domain name syntax should be like in the following example:
for domain microsof.com you simply add
microsoft.com RELAY


line. No preceding/trailing dots
Leovino A. Trinidad, Jr
Frequent Advisor

Re: Mail Relay

Yes Alex. I already test the smtp port by remotely telnetting the box... and it's responding...

Regards,


LAT
Jerome Henry
Honored Contributor

Re: Mail Relay

Could you then post your logs ?

J
You can lean only on what resists you...
Jerome Henry
Honored Contributor

Re: Mail Relay

BTW, relay could look also this way :
Linux.com OK
10.0 RELAY
Accepting mails coming from linux.com, relaying everything from 10.0.x.x
Did you set up /etc/mail/relay-domains, or do you just use /etc/mail/access ?

J
You can lean only on what resists you...
Alexander Chuzhoy
Honored Contributor

Re: Mail Relay

you can enter this line to /etc/mail/sendmail.mc


FEATURE(promiscuous_relay)
it will enable relay for everybody

then do:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

service sendmail restart



Best Regards...
U.SivaKumar_2
Honored Contributor

Re: Mail Relay

Hi,

Have you compiled the access.db after creating access file ?.

#cd /etc/mail
#make

Restart the sendmail and try again.

regards,

U.SivaKumar
Innovations are made when conventions are broken
Francisco J. Soler
Honored Contributor

Re: Mail Relay

Hi, What about postfix?

If you have problems with sendmail, and you can switch to another MTA, try postfix, is easier configure it.

Frank.
Linux?. Yes, of course.
Steven E. Protter
Exalted Contributor

Re: Mail Relay

On most red hat installations, iptables is configured to block port 25 smtp

check the /etc/sysconfig/iptables file

make sure port 25 is set to allow traffic.

Post your file if you need help.

service iptables restart

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Martin P.J. Zinser
Honored Contributor

Re: Mail Relay

Hi LAT,

just one word of caution, FEATURE(promiscous_relay) is nothing you want to do on a system with a direct connection to the internet. SPAM services will find and misuse your system in no time! If you are behind a secure firewall and need to route internal networks only OTOH it might be a handy shortcut.

Greetings, Martin