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 27th November 2006, 04:58
pksings pksings is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASSP with Postfix, no mail comes through (solved)

I setup Postfix on an Ubuntu 6.06 system, works fine, no complaints except way too much spam.

Attempted to setup ASSP. Perl dependecies were a problem but I got them all, note the following output..

perl ./CheckModules.pl
Mon Nov 27 02:52:12 2006
Perl Version: 5.008007
Operating System: linux
-------------------------------------------------
Module Status Version
-------------------------------------------------
Compress::Zlib Installed 2.001
Time::HiRes Installed 1.94
PerlIO::scalar Installed 0.02
Net::LDAP Installed 0.33
Mail::SPF::Query Installed 1.999001
Email::Valid Installed 0.178
Mail::SRS Installed 0.31
File::ReadBackwards Installed 1.04
Net:NS Installed 0.59
File::Scan::ClamAV Installed 1.8
Sys::Syslog Installed 0.18


Press Enter to end script.


I followed this howto to set it up...
http://www.howtoforge.com/antispam_smtp_proxy

I only changed in ASSP what is shown in the howto, nothing else.

It starts with no errors.
ASSP version 1.2.5(2) (Perl 5.008007) initializing
Nov 26 12:57:38 phred assp[6593]: File::Scan::ClamAV module not installed
Nov 26 12:57:38 phred assp[6593]: ASSP running on server: phred
Nov 26 12:57:38 phred assp[6593]: Net::LDAP module version 0.33 installed and available
Nov 26 12:57:38 phred assp[6593]: Net:NS module version 0.59 installed and available
Nov 26 12:57:38 phred assp[6593]: Email::Valid module version 0.178 installed and available
Nov 26 12:57:38 phred assp[6593]: Mail::SPF::Query module version 1.999001 installed and available
Nov 26 12:57:38 phred assp[6593]: Mail::SRS module version 0.31 installed - Sender Rewriting Scheme available
Nov 26 12:57:38 phred assp[6593]: Compress::Zlib module version 2.001 installed - HTTP compression available
Nov 26 12:57:38 phred assp[6593]: Digest::MD5 module version 2.36 installed - delaying will use MD5 keys for hashes
Nov 26 12:57:38 phred assp[6593]: File::ReadBackwards module version 1.04 installed - searching of log files enabled
Nov 26 12:57:38 phred assp[6593]: Time::HiRes module version 1.94 installed - CPU usage statistics available
Nov 26 12:57:38 phred assp[6593]: PerlIO::scalar module version 0.02 installed - chroot savy
Nov 26 12:57:38 phred assp[6593]: Sys::Syslog module version 0.18 installed - Unix centralized logging enabled
Nov 26 12:57:38 phred assp[6593]: Listening for mail connections at 192.168.1.5:25 and admin connections at 55555
Nov 26 12:57:38 phred assp[6593]: Warning: Bayesian spam database is small or empty: './spamdb'
Nov 26 12:57:38 phred assp[6593]: Warning: whitelist is small or empty: './whitelist' (ignore if this is a new install)
Nov 26 12:57:38 phred assp[6593]: Starting



But I get no email. I get the following in the logs when I send an email to myself here from gmail.

connect from localhost.pksings.com[127.0.0.1]
Nov 26 13:00:13 phred postfix/smtpd[6832]: AC82130B85: client=localhost.pksings.com[127.0.0.1]
Nov 26 13:00:14 phred assp[6777]: 64.233.182.188 <pksings@gmail.com> to: paul@pksings.com Bayesian spam -> ./spam/testmail_through_assp_--1.eml
Nov 26 13:00:14 phred postfix/smtpd[6832]: lost connection after DATA from localhost.pksings.com[127.0.0.1]
Nov 26 13:00:14 phred postfix/smtpd[6832]: disconnect from localhost.pksings.com[127.0.0.1]

Help please? I have no idea why this doesn't work. I will send whatever logs or info necessary for troubleshooting.

Thanks much in advance.

PK

Last edited by pksings; 1st December 2006 at 06:52. Reason: Solved
Reply With Quote
Sponsored Links
  #2  
Old 28th November 2006, 15:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What's the output of
Code:
netstat -tap
? What's in /etc/hosts and /etc/postfix/main.cf (please strip out the comments)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th November 2006, 17:15
pksings pksings is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Okay,

:etc/posfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
debug_peer_level = 2
append_dot_mydomain = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
myhostname = phred.pksings.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = phred.pksings.com, localhost.pksings.com, pksings.com , localhost
relayhost =
mynetworks = 127.0.0.0/8 192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/

:/etc/hosts

cat /etc/hosts
127.0.0.1 localhost.pksings.com localhost
192.168.1.5 phred.pksings.com www.pksings.com phred
168.103.90.3 ocns2.oc-ns.com ocns2
63.192.22.200 mail.primalbill.com
192.168.1.168 dell-pk.stackcomputer.com dell-pk

root@phred:/home/paul/Desktop# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:55555 *:* LISTEN 3634/perl
tcp 0 0 localhost.pksings:mysql *:* LISTEN 6340/mysqld
tcp 0 0 localhost.p:netbios-ssn *:* LISTEN 6439/smbd
tcp 0 0 phred.pksin:netbios-ssn *:* LISTEN 6439/smbd
tcp 0 0 192.168.1.2:netbios-ssn *:* LISTEN 6439/smbd
tcp 0 0 *:5900 *:* LISTEN 9588/vino-server
tcp 0 0 *:3310 *:* LISTEN 5698/clamd
tcp 0 0 localhost.pksings:spamd *:* LISTEN 21111/spamd.pid
tcp 0 0 *:x11 *:* LISTEN 9300/X
tcp 0 0 192.168.1.201:domain *:* LISTEN 5500/named
tcp 0 0 phred.pksings.co:domain *:* LISTEN 5500/named
tcp 0 0 localhost.pksing:domain *:* LISTEN 5500/named
tcp 0 0 *:ipp *:* LISTEN 30095/cupsd
tcp 0 0 localhost.pksings.:smtp *:* LISTEN 3702/master
tcp 0 0 phred.pksings.com:smtp *:* LISTEN 3634/perl
tcp 0 0 localhost.pksings.c:953 *:* LISTEN 5500/named
tcp 0 0 localhost.:microsoft-ds *:* LISTEN 6439/smbd
tcp 0 0 phred.pksi:microsoft-ds *:* LISTEN 6439/smbd
tcp 0 0 192.168.1.:microsoft-ds *:* LISTEN 6439/smbd
tcp 0 0 phred.pksings.com:35440 216.52.219.135:www ESTABLISHED10102/swiftfox-bin
tcp 0 0 phred.pksings.com:50984 wr-in-f19.google.co:www ESTABLISHED10102/swiftfox-bin
tcp 0 0 phred.pksings.com:50983 wr-in-f19.google.co:www ESTABLISHED10102/swiftfox-bin
tcp 0 4 phred.pksin:netbios-ssn 192.168.1.55:1100 ESTABLISHED24261/smbd
tcp 0 0 localhost.pksings.:3310 localhost.pksings:58336 TIME_WAIT -
tcp6 0 0 *op3 *:* LISTEN 9975/couriertcpd
tcp6 0 0 *:imap2 *:* LISTEN 10076/couriertcpd
tcp6 0 0 *:www *:* LISTEN 22032/apache2
tcp6 0 0 *:x11 *:* LISTEN 9300/X
tcp6 0 0 *:ssh *:* LISTEN 6484/sshd
tcp6 0 0 *:ipp *:* LISTEN 30095/cupsd
Reply With Quote
  #4  
Old 29th November 2006, 17:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

I'm not sure if it helps, but you could run
Code:
postconf -e 'myhostname = localhost.pksings.com'
and restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st December 2006, 06:51
pksings pksings is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Yup, that did it, works fine now.

Thank so very much.

PK
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
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
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 13:16
Postfix mail is held in queue indefinitely... squallbsr Server Operation 9 15th January 2006 20:13
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 16:20


All times are GMT +2. The time now is 03:56.


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