[Dovecot] Can't connect to SMTP outside localhost

Jeremy Gillick jeremymailing at gmail.com
Mon Jun 11 10:37:56 EEST 2007


I have Dovecot setup with Postfix and can't seem to connect to to the SMTP
server (port 25) unless I'm on the server itself (telnet localhost 25).  For
example, I cannot use my mail client, Thunderbird, to send mail from my
laptop -- it cannot even connect to the server.  I checked the logs and
nothing shows up for the attempted connection.

Dovecot version: 1.0.0
Postfix version: 2.3.6

---------- START DOVECOT CONFIG ----------
$ sudo dovecot -n
# /etc/dovecot.conf
base_dir: /var/run/dovecot/
protocols: imap pop3 imaps pop3s
ssl_listen: [::]
login_dir: /var/run/dovecot//login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
first_valid_uid: 101
last_valid_uid: 101
mail_extra_groups: mail
mail_location: maildir:/var/mail/%d/%u
mail_debug: yes
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
auth default:
  mechanisms: plain digest-md5 cram-md5
  user: nobody
  debug: yes
  debug_passwords: yes
  passdb:
    driver: sql
    args: /etc/dovecot/sql.conf
  userdb:
    driver: sql
    args: /etc/dovecot/sql.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: vmail
      group: mail
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
      group: mail
---------- END DOVECOT CONFIG ----------



---------- POSTFIX CONFIG (main.cf) ----------
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mozmonkey.com
mydomain = mozmonkey.com
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
local_recipient_maps =  $virtual_mailbox_maps
unknown_local_recipient_reject_code = 550
mail_spool_directory = /var/mail
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
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.6/samples
readme_directory = /usr/share/doc/postfix-2.3.6/README_FILES
address_verify_map      = btree:/var/spool/postfix/address_verify
virtual_mailbox_domains         =
proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_base            = /var/mail
virtual_mailbox_maps            =
proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_alias_maps              =
proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_minimum_uid             = 101
virtual_uid_maps                = static:101
virtual_gid_maps                = static:12
virtual_transport               = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_auth_enable          = yes
smtpd_sasl_local_domain        = $myhostname
smtpd_sasl_exceptions_networks  = $mynetworks
smtpd_sasl_security_options     = noanonymous
broken_sasl_auth_clients        = yes
smtpd_sasl_type                 = dovecot
smtpd_sasl_path                 = private/auth
smtp_tls_CAfile                 = /etc/pki/tls/cert.pem
smtp_tls_cert_file              = /etc/pki/tls/certs/localhost.crt
smtp_tls_key_file               = /etc/pki/tls/private/localhost.key
smtp_tls_session_cache_database =
btree:/var/spool/postfix/smtp_tls_session_cache
smtp_tls_security_level = may
smtpd_tls_dh1024_param_file     = $config_directory/dh_1024.pem
smtpd_tls_dh512_param_file      = $config_directory/dh_512.pem
smtpd_tls_received_header       = yes
smtpd_tls_ask_ccert             = yes
smtpd_tls_loglevel              = 1
tls_random_source               = dev:/dev/urandom
relay_domains = proxy:mysql:$config_directory/mysql_relay_domains_maps.cf
---------- POSTFIX CONFIG END (main.cf) ----------



---------- POSTFIX CONFIG (master.cf) ----------
smtp      inet  n       -       n       -       -       smtpd
smtps     inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
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
dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d
${recipient}
---------- POSTFIX CONFIG END(master.cf) ----------
<dovecot at dovecot.org>


More information about the dovecot mailing list