juanmi wrote:
My Mail Server is this:
Debian Sarge (updated)
Postfix 2.1.5-9
Maildrop 1.6.3
Yor answer say me: "refus mail for non-existent accounts in the first
place" I explain: I dont permit relay to non-existanaccounts in my MTA.
When I say non-existanaccounts i try say for example your mail
ton...@barlaeus.nl (i put one mor "n"), the mail go to your server and
say me "that user is unknow". I try refuse this mails with
luser_relay=sp...@domain.com in main.cf (but not work).
That's no good - you *have* to read the Postfix docs, try:
Rejecting Unknown Local Recipients with Postfix
http://www.postfix.org/LOCAL_RECIPIENT_README.html. This is 2.2
documentation, but the same applies to 2.1.
The Spammer send to my domain with non-existent accounts for example
(jua...@domain.com is existent but no 3dju...@domain.com) I need move
the mail to 3dju...@domain.com to the mailbox sp...@domain.com. I will
have a mailbox with all spam to non-exisatant accounts with this
solution and i will can teach spamassassin.
I try compose a similar code of this to put in maildroprc (I don?t know
the code) if you can help me :-(.
if ( /^To: NON-...@domain.com )
{
exception {
to "sp...@domain.com"
}
}
else
{
exception {
to "$HOME/$DEFAULT"
}
}
No.
# make sure Maildir exists
`test -d $HOME/Maildir/` # or wherever the Maildir should be
if( $RETURNCODE == 1 )
{
to /dev/null # or wherever you want.
}
Best,
--Tonni