Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: postfix maillog
PostPosted: Sat Dec 22, 2012 12:34 pm 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Hello,

I am running on Centos 5, a classic postfix email server,

I am getting a lot of entries like this one in/var/log/maillog

Dec 22 11:10:43 li21-231 postfix/smtpd[32045]: NOQUEUE: reject: RCPT from unknown[175.180.76.219]: 504 5.5.2 <f-225224966f204>: Helo command rejected: need fully-qualified hostname; from=<info@xxxxxx.com> to=<a901065@yahoo.com.tw> proto=ESMTP helo=<f-225224966f204>

I don't quite understand what is going on? If someone could educate me a little bit that would be great.

Than you!


Top
   
 Post subject: Re: postfix maillog
PostPosted: Sat Dec 22, 2012 1:14 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
Someone tried to use your mailserver to relay a message to someone at yahoo.com.tw, but you rejected it because they did not give a complete hostname in their HELO.

It is good that you rejected it, and it is quite normal to see lots of attempts like this - nothing to worry about.


Top
   
 Post subject: Re: postfix maillog
PostPosted: Sat Dec 22, 2012 2:01 pm 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
That's good to hear!

This maillog file is getting really big:

6.9G maillog
27M maillog.2
27M maillog.3
27M maillog.4

and I had to delete stuff in order to keep my linode up and running.

What would be a good strategy to reduce the size of that log. I mean that log is an important one and I don't think I can delete it but the more I am getting hit by those guys the more it grows...


Top
   
 Post subject: Re: postfix maillog
PostPosted: Sat Dec 22, 2012 4:31 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Use logrotate. It is usually installed by default, but may not be for you. Try googling for examples of usage and configuration, there are many pages like http://linuxnextgen.blogspot.ca/2011/04 ... linux.html

_________________
sleddog


Top
   
 Post subject: Re: postfix maillog
PostPosted: Sat Dec 22, 2012 10:23 pm 
Offline
Senior Member

Joined: Mon May 14, 2007 8:20 am
Posts: 81
Good, I am looking into that tool. Thanks. With this tool I will handle the size of my log properly. But the continuous flow will not stop... I changed the MX record associated with info@xxxxxx.com to nothing (I just deleted hat record from the zone) but the requests keep coming.
What could be done?


Top
   
 Post subject: Re: postfix maillog
PostPosted: Sun Dec 23, 2012 11:32 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
If you're seeing lots of attempts from small number of sites then something like fail2ban can be used to automatically firewall off these people (eg 5 failed relay attempts in a few seconds -> firewall entry).

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group