Hi
my first post here.
I must say Virtualmin is really a great help to adminster a server, which is nothing I am familiar with. I have installed it without any trouble and have Postfix, Greymin, Spam Assassin and DKIM running.
I host several domains and since I already know I won’t need much more than a webserver and email, I have set the firewall to “block all”. Later I manually added “accept” for the webserver ports 80&443 and SMPT ports 25&587. Since I have a fixed IP from my ISP, I also added an “accept” for this, because I only access/send email from this IP.
The server is currently being hammered by spam emails from various networks all around the world. Log file entry example (I replaced my email addresses / domains with xxx here):
> Apr 1 00:36:40 srt postfix/smtpd[5655]: connect from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:36:40 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=riskyzk@rennerpetroleum.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:36:40 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).net.html; from= to= proto=ESMTP helo=
> Apr 1 00:36:40 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=riskyzk@rennerpetroleum.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:36:40 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).net.html; from= to= proto=ESMTP helo=
> Apr 1 00:36:40 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=riskyzk@rennerpetroleum.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:36:40 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:36:40 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=riskyzk@rennerpetroleum.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:36:40 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:36:40 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=riskyzk@rennerpetroleum.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:36:40 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:36:40 srt postfix/smtpd[5655]: lost connection after DATA from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:36:40 srt postfix/smtpd[5655]: disconnect from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:37:39 srt postfix/smtpd[5655]: connect from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:37:39 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=copdzw@rainbowsgold.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:37:39 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:37:39 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=copdzw@rainbowsgold.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:37:39 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:37:39 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=copdzw@rainbowsgold.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:37:39 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:37:39 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=copdzw@rainbowsgold.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:37:39 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).net.html; from= to= proto=ESMTP helo=
> Apr 1 00:37:39 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=copdzw@rainbowsgold.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:37:39 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).net.html; from= to= proto=ESMTP helo=
> Apr 1 00:37:39 srt postfix/smtpd[5655]: lost connection after DATA from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:37:39 srt postfix/smtpd[5655]: disconnect from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:38:40 srt postfix/smtpd[5655]: connect from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:38:41 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=kopeckqr@roteerdbeere.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:38:41 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).net.html; from= to= proto=ESMTP helo=
> Apr 1 00:38:41 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=kopeckqr@roteerdbeere.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:38:41 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).net.html; from= to= proto=ESMTP helo=
> Apr 1 00:38:41 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=kopeckqr@roteerdbeere.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:38:41 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:38:41 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=kopeckqr@roteerdbeere.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:38:41 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:38:41 srt postgrey[4573]: action=greylist, reason=new, client_name=NATIONAL-NA.edge2.Washington1.Level3.net, client_address=4.30.208.222, sender=kopeckqr@roteerdbeere.com, recipient=xxx@xxxxxx.tld
> Apr 1 00:38:41 srt postfix/smtpd[5655]: NOQUEUE: reject: RCPT from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]: 450 4.2.0 : Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/(mydomain).com.html; from= to= proto=ESMTP helo=
> Apr 1 00:38:41 srt postfix/smtpd[5655]: lost connection after DATA from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:38:41 srt postfix/smtpd[5655]: disconnect from NATIONAL-NA.edge2.Washington1.Level3.net[4.30.208.222]
> Apr 1 00:39:28 srt postfix/anvil[5321]: statistics: max connection rate 2/60s for (smtp:173.15.249.157) at Apr 1 00:29:47
> Apr 1 00:39:28 srt postfix/anvil[5321]: statistics: max connection count 1 for (smtp:173.15.249.157) at Apr 1 00:29:28
> Apr 1 00:39:28 srt postfix/anvil[5321]: statistics: max cache size 2 at Apr 1 00:30:22
Is there by chance a way to prevent these guys from sending spam but leave legitimate users through? I tried to restrict SMTP and AUTH access to 127.0.0.1 in the firewall, but it causes all email from “outside” to be returned to sender.
And looks like the spam guys somehow managed to get through because
webmin → read user mail → mailbox → spam
shows some emails without any headers and sender receiver address
Unknown
0 kB
clicking on it gives me
Mail headers View all headers | View raw message
From
To
Date
Subject
Message contents
This message has no body contents.
But when I try to delete it, it says
No mail selected to delete
got a few thousand of these and I cannot delete them.
Any help would be greatly appreciated.