DIYMacServer » Postfix

3 posts

fatal: bind 0.0.0.0 port 25: Address

started at 20 Jan 2010
started by leafling
last reply from richard
  • leafling
    20 Jan 2010
    #

    I'm have postfix + dovecot + MySQL setup on my Mac w/ Snow Leopard (64 bit) and used your tutorial to get me going. Though everything works it only runs for a short time before I can't connect to send mail and I see this error:

    [code]Jan 20 15:19:30 mail postfix/master[88432]: fatal: bind 0.0.0.0 port 25: Address already in use[/code]

    [b]sudo lsof -i :25[/b]
    [code]COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    smtp 89048 _postfix 10u IPv4 0x208bf710 0t0 TCP mail.pounce.com:56970->ip91.98.69.80.in-addr.arpa:smtp (ESTABLISHED)
    smtpd 89065 _postfix 6u IPv4 0x208c5740 0t0 TCP *:smtp (LISTEN)
    smtpd 89065 _postfix 11u IPv4 0x208c5b4c 0t0 TCP mail.pounce.com:smtp->s69-163-43-237.in-addr.arpa.static.dsn1.net:31182 (ESTABLISHED)
    [/code]

    Which looks right, but perhaps the issue is that there is no master process. I don't know... ???

    [b]sudo postconf -n[/b]
    [code]
    biff = no
    broken_sasl_auth_clients = yes
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/libexec/postfix
    data_directory = /var/lib/postfix
    debug_peer_level = 2
    disable_vrfy_command = yes
    html_directory = /usr/share/doc/postfix/html
    mail_owner = _postfix
    mailbox_size_limit = 0
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    message_size_limit = 10485760
    myhostname = mail.domain.com
    myorigin = $myhostname
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    recipient_delimiter = +
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtp_tls_security_level = none
    smtpd_client_event_limit_exceptions = $mynetworks
    smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
    smtpd_data_restrictions = reject_unauth_pipelining
    smtpd_etrn_restrictions = reject
    smtpd_helo_required = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_rbl_client zen.spamhaus.org, permit
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain = $myhostname
    smtpd_sasl_path = private/auth
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_type = dovecot
    smtpd_tls_cert_file = /etc/ssl/mail.domain.com.crt
    smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
    smtpd_tls_key_file = /etc/ssl/mail.domain.com.key
    smtpd_tls_loglevel = 1
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    unknown_local_recipient_reject_code = 550
    virtual_alias_maps = mysql:/etc/postfix/conf/mysql_virtual_alias_maps.cf
    virtual_gid_maps = static:199
    virtual_mailbox_base = /Volumes/data/mail/
    virtual_mailbox_domains = mysql:/etc/postfix/conf/mysql_virtual_domains_maps.cf
    virtual_mailbox_limit = 51200000
    virtual_mailbox_maps = mysql:/etc/postfix/conf/mysql_virtual_mailbox_maps.cf
    virtual_minimum_uid = 199
    virtual_transport = dovecot
    virtual_uid_maps = static:199
    [/code]

    I'm new to postfix so I'm not very proficient in troubleshooting so any help would be greatly appreciated.

    Thanks.

  • leafling
    22 Jan 2010
    #

    [hmm...]

  • 24 Jan 2010
    #

    Your config looks a bit different then mine, please check your config file against the settings put into the documentation. If your absolutely sure it's orect check the master.cf as well.

Reply

You must log in to post.