LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Mail Relay Server by using Sendmail (https://www.linuxquestions.org/questions/linux-security-4/mail-relay-server-by-using-sendmail-320756/)

raymond117 05-06-2005 11:07 AM

Mail Relay Server by using Sendmail
 
I set up a mail relay server (red hat9 , sendmail 8.12.10)

I would like to allow relay only for email sending to xxx@abc.com

so I write in /etc/mail/access:

To: abc.com RELAY
Connect: abc.com RELAY



according here--> anti_spam.html#access_db_fine
in sendmail.org

But it seems don't work as I get "Relay Denied error".

Anyone knows how ??

Thanks a lot !!!!

benjithegreat98 05-06-2005 01:02 PM

I think the way you would do that wouldn't be in the access file. It would be to put "abc.com" in the relay-domains file and ".abc.com smtp:10.1.2.3" in the mailertable file. Of course change 10.1.2.3 to the appropriate IP.

raymond117 05-11-2005 10:25 AM

Problems solved:

To:abc.com RELAY

in /etc/mail/access

No space behind ":" is allowed.


Thanks~


All times are GMT -5. The time now is 07:11 AM.