Perfect Setup FC4 + Postfix problems

Discussion in 'Installation/Configuration' started by pjcast, Aug 11, 2006.

  1. pjcast

    pjcast New Member

    First of all I must say I love this site, it is very useful.

    I followed the perfect setup for FC4 and have had everything working nicely for sometime. I have had my smtp server (postfix) disabled for quite some time, as someone on my subnet was using my server as a relay. And, at the time, I didn't have time or need to fix it. Though, I managed to sort that out yesterday. Now, I can send and recieve mail locally (via mail command or webmail plugin for ISPConfig) no problem :)

    I can even connect externally and download/delete/etc mail via POP3 externally (Outlook and Thunderbird). But, for the life of me I cannot get sending to work from either outlook or thunderbird. As per the perfect setup, I had installed saslauth. I get no error in the maillog relating to this at all.

    Outlook reports:
    Thunderbird just reports unable to send. As far as I can tell, port 25 is open to connections. I am, however, just an average Linux user and noob Linux server maintainer :) Hopefully someone can help solve my probably silly missconfiguration problem. And I have spent much time searching this forum for answers, but all the threads about this don't seem to help me find the problem. I also tried various requires auth settings in both apps, but no luck.

    /etc/postfix/main.cf

    Code:
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    
    myorigin = wreckedgames.com
    inet_interfaces = all
    unknown_local_recipient_reject_code = 550
    
    mynetworks = 72.21.55.243, 72.21.55.244, 72.21.55.245, 72.21.55.246, 127.0.0.0/8
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    
    smtpd_banner = $myhostname ESMTP $mail_name (GNU/Linux)
    debug_peer_level = 2
    
    debugger_command =
    	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    	 xxgdb $daemon_directory/$process_name $process_id & sleep 5
    
    sendmail_path = /usr/sbin/sendmail.postfix
    newaliases_path = /usr/bin/newaliases.postfix
    mailq_path = /usr/bin/mailq.postfix
    setgid_group = postdrop
    
    smtpd_sasl_local_domain = $myhostname
    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
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    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
    
    virtual_maps = hash:/etc/postfix/virtusertable
    
    mydestination = /etc/postfix/local-host-names
    
    /etc/postfix/master.cf
    Code:
    smtp      inet  n       -       n       -       -       smtpd
    
    pickup    fifo  n       -       n       60      1       pickup
    cleanup   unix  n       -       n       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    
    tlsmgr    unix  -       -       n       1000?   1       tlsmgr
    rewrite   unix  -       -       n       -       -       trivial-rewrite
    bounce    unix  -       -       n       -       0       bounce
    defer     unix  -       -       n       -       0       bounce
    trace     unix  -       -       n       -       0       bounce
    verify    unix  -       -       n       -       1       verify
    flush     unix  n       -       n       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    smtp      unix  -       -       n       -       -       smtp
    
    relay     unix  -       -       n       -       -       smtp
    	-o fallback_relay=
    showq     unix  n       -       n       -       -       showq
    error     unix  -       -       n       -       -       error
    discard   unix  -       -       n       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       n       -       -       lmtp
    anvil     unix  -       -       n       -       1       anvil
    scache	  unix	-	-	n	-	1	scache
    
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    
    old-cyrus unix  -       n       n       -       -       pipe
      flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
    
    cyrus     unix  -       n       n       -       -       pipe
      user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
    
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
    
    
    Thanks
     
  2. pjcast

    pjcast New Member

    Heh, it seems that it is indeed working fine. I appear to behine a firewall on the clientside blocking my connection to port 25. Thanks again for the great tutorials :)
     

Share This Page