Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th February 2013, 00:30
Roderick1st Roderick1st is offline
Junior Member
 
Join Date: Feb 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default The Perfect SpamSnake - Ubuntu 12.04 - No mail getting through from the outside

*FIXED*

Hi All,

I have just completed putting together a spam snake using the software and how-to named The Perfect SpamSnake - Ubuntu Jeos 12.04 LTS Precise Pangolin, which is put together very nicely.

However I can't seem to receive email from the outside world.

If I telnet into the server from a machine inside the local network I am able to send an email to a user hosted on my exchange 2007 email server, but when I try from external sources I get an error. I also can't receive email from my googlemail account.

I have attached a copy of the mail.log, however if you need more information I'll gladly post it.

Thanks in advance,

Rod.



#####Telnet from outside local network#####

220-ESMTP SpamSnake
ehlo britishint.com
250-spamsnake.______.co.uk
250-SIZE 10485760
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from :ravery@britishint.com
250 2.1.0 Ok
rcpt to: rod@manorfarmlusby.co.uk
550 5.5.1 Protocol error


#####Telnet from within local net#####

220 ESMTP SpamSnake
ehlo britishint.com
250-spamsnake.______.co.uk
250-PIPELINING
250-SIZE 10485760
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: ravery@britishint.com
250 2.1.0 Ok
rcpt to: rod@manorfarmlusby.co.uk
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: Test Message

Hello
.
250 2.0.0 Ok: queued as 3E9FE5A98

Last edited by Roderick1st; 8th February 2013 at 15:52. Reason: Problem Fixed
Reply With Quote
Sponsored Links
  #2  
Old 8th February 2013, 14:36
Roderick1st Roderick1st is offline
Junior Member
 
Join Date: Feb 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK ... a little sleep helps:

I have found the issue to be with the line below in main.cf:

smtpd_recipient_restrictions = reject_unauth_destination, permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, whitelist_policy, grey_policy, spf_policy, rbl_policy, permit



spf_policy causes the following error:

Feb 8 13:25:45 spamsnake postfix/smtpd[1051]: warning: connect to private/policy: No such file or directory
Feb 8 13:25:46 spamsnake postfix/smtpd[1051]: warning: connect to private/policy: No such file or directory
Feb 8 13:25:46 spamsnake postfix/smtpd[1051]: warning: problem talking to server private/policy: No such file or directory
Feb 8 13:25:46 spamsnake postfix/smtpd[1051]: NOQUEUE: reject: RCPT from mail-ee0-f53.google.com[74.125.83.53]: 451 4.3.5 Server configuration problem; from=<r______@googlemail.com> to=<rod@______.co.uk> proto=ESMTP helo=<mail-ee0-f53.google.com>


rbl_policy causes the following error:

Feb 8 13:24:18 spamsnake postfix/smtpd[952]: connect from mail-ea0-f181.google.com[209.85.215.181]
Feb 8 13:24:18 spamsnake postfix/smtpd[952]: warning: unknown smtpd restriction: "rbl_policy"
Feb 8 13:24:18 spamsnake postfix/smtpd[952]: NOQUEUE: reject: RCPT from mail-ea0-f181.google.com[209.85.215.181]: 451 4.3.5 Server configuration error; from=<r______@googlemail.com> to=<rod@______.co.uk> proto=ESMTP helo=<mail-ea0-f181.google.com>


If anyone can shed some light as to how to resolve these two issues I would be very grateful.

Rod.
Reply With Quote
  #3  
Old 8th February 2013, 15:27
Roderick1st Roderick1st is offline
Junior Member
 
Join Date: Feb 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right ... fixed the SPF problem using info on this link: https://help.ubuntu.com/community/Postfix/SPF

Basically remove spf_policy and replace with
Code:
check_policy_service unix:private/policy-spf
Leave all other settings as is regarding SPF

I am assuming in my noobiness that this is doing the intended job.
Reply With Quote
  #4  
Old 8th February 2013, 15:48
Roderick1st Roderick1st is offline
Junior Member
 
Join Date: Feb 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

... and rbl issue is fixed...

postfix did not like referencing made up rbl_policy instead added the following directly to smtpd_recipient_restrictions:

reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net,

so now line reads:
Code:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_destination, whitelist_policy, grey_policy, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, check_policy_service unix:private/policy-spf, permit
Thanks for letting me air my problems ;-)

Last edited by Roderick1st; 8th February 2013 at 15:51.
Reply With Quote
Reply

Bookmarks

Tags
spamsnake 12.04

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 22:58
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
Why did Squirrelmail, Dovecot/IMAP & Outbound mail break? websissy Technical 4 29th October 2009 22:39
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
About installing ddclient satimis Server Operation 32 21st December 2006 03:51


All times are GMT +2. The time now is 13:25.


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