Postfix + Dovecot can received but not sending (No Mail Transport)

Discussion in 'Server Operation' started by Ardy, Jul 8, 2016.

  1. Ardy

    Ardy New Member

    Hi all, thank you for taking the time to help me on my issue(s) here since im desperate to solve this.
    My mail server (solaris 10) running Postfix 2.8.9 with dovecot and spamassassin had an issue sending out email (local nor internet).
    It's been running for quite awhile but i did changed something (i did'nt know which conf) to make it more secure but for stupid of me i didnt make any back-up before then.
    it's been 3 days since i scratching my head with no avail. perhaps you could point me out to the light.

    here are my configuration;
    postconf -f
    soft_bounce = no
    queue_directory = /var/opt/csw/spool/postfix
    command_directory = /opt/csw/sbin
    daemon_directory = /opt/csw/libexec/postfix
    data_directory = /var/opt/csw/lib/postfix
    mail_owner = postfix
    myhostname = xx.xx.com
    mydomain = xx.com
    myorigin = $mydomain
    inet_interfaces = all
    mydestination = $myhostname, xx.com, localhost.$mydomain, localhost, $mydomain
    unknown_local_recipient_reject_code = 550
    mynetworks_style = host
    #relay_domains =
    relayhost =
    alias_maps = hash:/etc/postfix/aliases
    alias_database = hash:/etc/postfix/aliases
    recipient_delimiter = +
    home_mailbox = Maildir/
    mail_spool_directory = /var/spool/mail
    mailbox_command = /opt/csw/libexec/dovecot/deliver
    mailbox_transport = dovecot
    virtual_transport = dovecot
    dovecot_destination_recipient_limit=1
    smtpd_banner = $myhostname ESMTP $mail_name
    debug_peer_level = 2
    debugger_command =
    PATH=/bin:/usr/bin:/opt/csw/bin:/usr/X11R6/bin
    ddd $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /opt/csw/sbin/sendmail
    mailbox_size_limit=524288000
    message_size_limit=52428800
    newaliases_path = /opt/csw/bin/newaliases
    mailq_path = /opt/csw/bin/mailq
    setgid_group = postdrop
    virtual_minimum_uid = 100
    fallback_transport = virtual
    disable_vrfy_command = yes
    smptd_recipient_restrictions = permit_mynetworks,
    reject_rbl_client sbl.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    reject_non_fqdn_sender,
    reject_unknown_sender_domain,
    reject_non_fqdn_recipient,
    reject_unknown_recipient_domain,
    reject_unauth_pipelining,
    reject_unauth_destination,
    reject_unknown_client,
    check_policy_service unix:private/policy,
    reject_non_fqdn_recipient
    owner_request_special = no
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = /var/opt/csw/spool/postfix/private/auth
    smtpd_sasl_local_domain = mcbridesurgicalcenter.com
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_use_tls = yes
    smtpd_tls_cert_file=/opt/csw/ssl/certs/dovecot.pem
    smtpd_tls_key_file=/opt/csw/ssl/private/dovecot.pem
    tls_random_source = /dev/urandom
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
    smtpd_tls_security_level = may
    smtpd_tls_received_header = yes
    smtpd_tls_auth_only = no
    smtpd_tls_loglevel = 1
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_sender_restrictions = reject_unknown_sender_domain, check_sender_access hash:/etc/opt/csw/postfix/blacklist
    alternate_config_directories=/etc/opt/csw/postfix

    master.cf

    smtp inet n - n - - smtpd
    -o content_filter=spamfilt
    submission inet n - n - - smtpd
    -o syslog_name=postfix/submission
    -o smtpd_tls_security_level=encrypt
    -o smtpd_tls_wrappermode=no
    -o smtpd_client_restrictions=permit_mynetworks, reject
    -o smtpd_sasl_type=dovecot
    -o smtpd_sasl_path=/var/opt/csw/spool/postfix/private/auth
    -o smtpd_sasl_security_options=noanonymous
    -o smtpd_sender_login_maps=hash:/etc/postfix/virtual
    -o smtpd_sender_restrictions=reject_sender_login_mismatch
    -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject
    -o milter_macro_daemon_name=ORIGINATING
    pickup fifo n - n 60 1 pickup
    cleanup unix n - n - 0 cleanup
    qmgr fifo n - n 300 1 qmgr
    #qmgr fifo n - n 300 1 oqmgr
    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
    proxywrite unix - - n - 1 proxymap
    #smtp unix - - n - - smtp
    relay unix - - n - - smtp
    -o smtp_fallback_relay=
    # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq unix n - n - - showq
    error unix - - n - - error
    retry 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
    dovecot unix - n n - - pipe
    flags=DRhu user=vmail:dovecot argv=/opt/csw/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    spamfilt unix - n n - - pipe
    flags=Rq user=spamd argv=/etc/opt/csw/postfix/spamfilt.sh -oi -f ${sender} ${recipient}
    policy unix - n n - - spawn
    user=spamd argv=/opt/csw/bin/perl /etc/opt/csw/postfix/policyd-spf-perl

    dovecot.conf
    # 2.0.20: /etc/opt/csw/dovecot/dovecot.conf
    # OS: SunOS 5.10 i86pc
    auth_mechanisms = ntlm login
    disable_plaintext_auth = yes
    first_valid_gid = 102
    first_valid_uid = 101
    passdb {
    args = scheme=CRAM-MD5 username_format=%n /data/mail/vhosts/passwd
    driver = passwd-file
    }
    protocols = pop3 imap
    service auth {
    unix_listener /var/opt/csw/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
    }
    user = dovecot
    }
    service pop3-login {
    inet_listener pop3 {
    port = 0
    }
    }

    ssl_cert = </etc/opt/csw/ssl/certs/dovecot.pem
    ssl_key = </etc/opt/csw/ssl/private/dovecot.pem
    userdb {
    args = username_format=%n /data/mail/vhosts/passwd
    driver = passwd-file
    }
    mail_location = maildir:~/Maildir

    plugin {
    quota_rule = *:storage=1G
    quota_rule2 = Trash:storage=+100M
    quota_rule3 = SPAM:ignore
    }

    sorry for the long and winding post since i didn't know where the mistakes are.
    Any thought are welcome.
     

Share This Page