how to allow relay based on IP (or hostname) without checking other rules in sendmail.cf
Posted on 2002-03-27
i am using one server as SMTP server and another as POP3 server,both of them installed RedHat6.2 & Sendmail8.9
.3-20,the SMTP server anti-spam by /etc/mail/access,only a few domains are set as "RELAY/OK" there,and the POP3 server using SMTP server as its "smart host" (because a webmail installed on POP3 one),everything is fine.
but i also setup /etc/mail/virtusertable to FORWARD some mails to other domains on POP3 server,the problem
coming: when POP3 get the email (for example:the sender is
"email@example.com"),that's no problem and then,when the
"virtusertable" works,POP3 server would forward this mail by sending it to its "smart host"-- the SMTP server.
while SMTP server checked the "sender",but firstname.lastname@example.org
m is not in the /etc/mail/access file to be relayed,so SM
TP response a "550 Access Deined" ERROR. my question is:
1) how could i setup on SMTP server that "allow relay based on POP3 server's IP",that ALL mails from POP3 server
could be relayed without checking "sender & recipient" ?
just like what "host_accept_relay" do in Exim software.
BTW,i think maybe /etc/mail/relay-domains could do what
i want,right? if so,the problem is there's no such file after RPM installation,more over,i don't know whether sendmail.cf would use it if i create a new one.
desiring for your help,thanks a lot !