ASSP with Postfix, no mail comes through

Discussion in 'Server Operation' started by pksings, Nov 27, 2006.

  1. pksings

    pksings New Member

    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::DNS 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::DNS 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: Dec 1, 2006
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ? What's in /etc/hosts and /etc/postfix/main.cf (please strip out the comments)?
     
  3. pksings

    pksings New Member

    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 *:pop3 *:* 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
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    I'm not sure if it helps, but you could run
    Code:
    postconf -e 'myhostname = localhost.pksings.com'
    and restart Postfix.
     
  5. pksings

    pksings New Member

    Yup, that did it, works fine now.

    Thank so very much.

    PK
     

Share This Page