MailScanner SPAM Forward & Postfix Problem

Drew Marshall drew at THEMARSHALLS.CO.UK
Fri Apr 8 08:51:29 IST 2005


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Kennedy Clark said:
> Drew,
> Great info.  Thanks!  Quick question: I'm not completely following your
example. So, say I have two domains called "mydomain.com" and
"myotherdomain.com" (the server is "svr.mydomain.com").  I want to
forward MailScanner SPAM to an email address called
> "spamstuff at mydomain.com" (and spamstuff exists as a system/shell account
as well).  Would I then do this...
>
> /etc/MailScanner/MailScanner.conf:
> Spam Actions = store forward spamstuff at mydomain.com
>
> /etc/postfix/aliases
> spamstuff:    spamstuff
>
> And remove "spamstuff at mydomain.com     spamstuff at localhost" from my
/etc/postfix/virtial_alias table.
>
> When I try this, I don't get anything for spamstuff at mydomain.com when I
try to his it from a gmail account.
>
> Sorry if I'm being dense here,

If the account you are forwarding to is a local account (Which it would be
if it has a shell account) then you don't need to do anything other than
specify it in MailScanner. I have assumed that you have defined mydomains
= mydomain.com (So Postfix knows it's local), then remove spamstuff from
your aliases file and that should work.

If you haven't specified mydomain as local in /etc/postfix/main.cf then
the easiest way to make it work is just to specify the local address in
MailScanner.conf e.g. Spam Actions = store forward
spamstuff at svr.mydomain.com and that will work also.

The problem only really pops up when MailScanner is used as a gateway for
another machine and where you want spam forwarded to an account on this
other machine, but even that can be got round :-)

I hope that makes sense (Not enough coffee yet!)

Drew




--
In line with our policy, this message has
been scanned for viruses and dangerous
content by MailScanner, and is believed to be clean.
www.themarshalls.co.uk/policy

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list