<div dir="ltr"><div><div><div><div>Hello,<br><br>This is what I have done.<br>Created a new policy bank in Amavis which will listen on 10026 on localhost port.<br></div>Created a sender lookup table which contains following lines.<br>
<br></div>domainname  FILTER smtp:[127.0.0.1]:10026<br><br></div>Use the table in existing access restriction.<br><br></div>In this way mails coming from domainname will be scanned using completely different spam rules than the existing.<br>
<div><br><div><br><div><div><div><br><div><br><br>On Thu, Feb 20, 2014 at 3:42 PM, Infoomatic via amavis-users <<a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a>> wrote:<br>><br>> hi list,<br>
><br>> I want to reject outgoing spam from my server.<br>> Users, aliases and domains come from LDAP, postfix uses smtpd_sender_restrictions = reject_sender_login_mismatch<br>><br>> However, I did not quite figure out to handle incoming spam different from outgoing.<br>
> i want something like<br>> if (sendermaildomain = one_of_my_domains){<br>>   $final_spam_destiny       = D_REJECT;<br>> } else {<br>>   $final_spam_destiny       = D_PASS;<br>> }<br>><br>> I found various things to bypass scanning of outgoing mails, but no solution for my case. Mail is sent only via port 25, clients come from dynamic ipadresses.<br>
> Or is it possible in postfix to use different content_filter for incoming and outgoing mails? ... I could start 2 amavis instances on different ports, one handling outgoing and one handling incoming mails, however I don't know how to configure this in postfix or distinguish incoming/outgoing mails.<br>
><br>> thanks in advance,<br>> infoomatic<br><br></div></div></div></div></div></div></div>