Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st September 2012, 23:29
blinky blinky is offline
Member
 
Join Date: Sep 2012
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default postgrey - postfix greylisting

Hi everyone,

I'm trying to figure out why postgrey is rejecting incoming mail...

From the syslog:

Sep 21 16:12:24 mail postfix/smtpd[31224]: connect from mail.ncf.ca[134.117.136.45]
Sep 21 16:12:24 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth
Sep 21 16:12:24 mail dovecot: auth: Debug: Module loaded: /usr/lib/dovecot/modules/auth/libdriver_mysql.so
Sep 21 16:12:24 mail dovecot: auth: Debug: auth client connected (pid=31224)
Sep 21 16:12:24 mail postfix/smtpd[31224]: Anonymous TLS connection established from mail.ncf.ca[134.117.136.45]: TLSv1 with cipher ADH-AES256-SHA (256/256 bits)
Sep 21 16:12:25 mail postgrey[1519]: action=greylist, reason=new, client_name=mail.ncf.ca, client_address=134.117.136.45, sender=nospam@ncf.ca, recipient=test@comingtoatheatrenearyou.com
Sep 21 16:12:25 mail postfix/smtpd[31224]: NOQUEUE: reject: RCPT from mail.ncf.ca[134.117.136.45]: 450 4.2.0 <test@comingtoatheatrenearyou.com>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/c...ryou.com.html; from=<nospam@ncf.ca> to=<test@comingtoatheatrenearyou.com> proto=ESMTP helo=<mail.ncf.ca>
Sep 21 16:12:25 mail postfix/smtpd[31224]: disconnect from mail.ncf.ca[134.117.136.45]

Any help greatly appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 22nd September 2012, 00:25
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

Quote:
"Greylisting is a method of defending email users against spam. A mail transfer agent (MTA) using greylisting will "temporarily reject" any email from a sender it does not recognize. If the mail is legitimate the originating server will, after a delay, try again and, if sufficient time has elapsed, the email will be accepted."
Your log is ok
Reply With Quote
  #3  
Old 22nd September 2012, 01:22
blinky blinky is offline
Member
 
Join Date: Sep 2012
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How interesting... so it's a temporary delay presumably because most spammers won't try several times. I wonder how long the delay is?
Reply With Quote
  #4  
Old 22nd September 2012, 01:24
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

Default delay is 5 minutes. You can change it in /etc/default/postgrey

Cheers
Reply With Quote
  #5  
Old 22nd September 2012, 05:20
blinky blinky is offline
Member
 
Join Date: Sep 2012
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I lowered the default to 60 by adjusting hte POSTGREY_OPTS for debugging purposes.

Oh and the missing /etc/var/mail.log was an error on my part. I recreated it with the appropriate chmod switch and postfix is now writing to the mail.log as it should.

I am actually able to send mail out now from the domain to other addresses, and I know mail is arriving as it's shown in the log but, of course, I'm just not quite sure where to look for it... presumably somewhere via mysql.

I thought the "mail" command would show it to me but no such luck.

There is some more progress on the project and I thank you again for your input.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 14:29
Killing that spam with greylisting using Postfix and Postgrey erk Tips/Tricks/Mods 11 18th June 2008 06:09
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36


All times are GMT +2. The time now is 02:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.