Am 07.02.2013 07:20, schrieb (HT) Simon Walter:
> Hi all,
> 
> I have the situation where a spammer knows the username and password of
> an account and is sending spam via that account. I can change the
> password, however, this account is shared amongst many users and I'd
> rather not ask all the users to change their password. (Computer
> literacy is becoming a rare quality these days ;))
> 
> Our postfix server is behind a firewall. So the spammer always connects
> via the gateway. 

so you have to reject it on the gateway, if no need for anyone else
to use the account from outside

sender_restrictions via access table  may enough

http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions

somewhere before sasl permit etc
and/or use smtpd_restriction_classes to combine

if no external mail from outside is wanted for this account
i.e delete it from relay_recipients, so mail will always bounce from outside

for better help show the gateway main.cf

rejecting via ip may not very usefull, cause ips may change


This shared account need not be accessible from outside
> the network. So I don't mind rejecting all email from that user when
> originating from the gateway.
> 
> I've did some searches and am pretty familiar with the docs, yet nothing
> strikes me as a solution to this. Is rejecting a sender when it is from
> a certain IP address possible?
> 
> Any advice appreciated.
> 
> Kind regards,
> 
> Simon
> 



Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Joerg Heidrich

Reply via email to