On Fri, Feb 28, 2014 at 7:58 AM, Nilesh Govindrajan <m...@nileshgr.com> wrote:
> I have setup amavisd-new to listen on ports 10024 & 10026. Currently, all > mail is going to port 10024. The policy for 10024 is to alert spam.police / > virus.police whenever a virus / spam message is passed through. > > I want alerts only if the mail originates from localhost (I have setup the > ORIGNATING policy for the same in amavisd config). I also have another > REMOTE policy which won't send messages to admin. > > How to do this? The local mail must catch those sent using sendmail as > well. > > Basic understanding tells me I can set postfix to send mail from port 25 > to amavisd:10026, but what if a user authorizes via port 25 & sends a mail? > It'll go to 10026. > > Basically, I want mails from all authorized users (SASL) to go to 10024 & > unauthorized (aka incoming) to 10026. > One more possible way could be not allowing authentication on port 25. Is that possible? That way I can be sure that I get only incoming mail on port 25.