[Dovecot] Postfix don't relay to dovecot virtual user

phil25lsbin phil25lsbin at gmail.com
Thu Jun 7 16:33:34 EEST 2012


Hi,

I run a mail server on debian squeeze system , i installed the following
software

postfix
dovecot
spamassassin
postgrey

I configured a virtual domain and virtual mailbox but postfix don't pipe
mail in dovecot.

In log, it's appear that the relay mode is local and the delivery message
is delivered to mailbox)

Jun  7 15:23:01 ns230370 postfix/smtpd[27501]: 66BBA4D40F0:
client=localhost.localdomain[127.0.0.1]
Jun  7 15:23:01 ns230370 postfix/cleanup[8017]: 66BBA4D40F0: message-id=<
E1Sccg1-00029S-9I at ns231581.ovh.net>
Jun  7 15:23:01 ns230370 postfix/qmgr[27490]: 66BBA4D40F0: from=<
admlb at lebest.fr>, size=1807, nrcpt=1 (queue active)
Jun  7 15:23:01 ns230370 postfix/local[7907]: 66BBA4D40F0: to=<
admlb at lebest.fr>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0,
status=sent (delivered to mailbox)
Jun  7 15:23:01 ns230370 postfix/qmgr[27490]: 66BBA4D40F0: removed


My dovecot.conf:

protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
log_path = /var/log/dovecot/dovecot.log
info_log_path = /var/log/dovecot/dovecot-info.log
mail_privileged_group = mail
disable_plaintext_auth = no
mail_location = maildir:/home/smtp/%d/%n:INDEX=/home/smtp/%d/%n/indexes
protocol imap {
}

protocol pop3 {
}
protocol managesieve {
}
protocol lda {
  postmaster_address = admlb at XXX.FR
  mail_plugin_dir = /usr/lib/dovecot/modules/lda
  auth_socket_path = /var/run/dovecot/auth-master
}
auth default {
        userdb sql {
        args = /etc/dovecot/dovecot-mysql.conf
        }
        passdb sql {
        args = /etc/dovecot/dovecot-mysql.conf
        }
 socket listen {
  master {
  path = /var/run/dovecot/auth-master
  mode = 0600
  user = smtp
  }
  client {
  path = /var/spool/postfix/private/auth
  mode = 0660
  user = postfix
  group = postfix
  }
 }
}
dict {
}
plugin {
}


My main.cf

myhostname = smtp.XXX.FR
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = XXX.FR
mydestination = XXX.FR, smtp.XXX.FR, localhost.XXX.FRr, localhost
relayhost =
mynetworks = 172.16.0.0/12 127.0.0.0/8
mailbox_size_limit = 0
inet_interfaces = all
virtual_uid_maps = static:3000
virtual_gid_maps = static:3000
virtual_mailbox_base = /home/smtp
virtual_transport = dovecot
virtual_mailbox_domains = mysql:/etc/postfix/
mysql_virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
relay_domains = mysql:/etc/postfix/mysql_relay_domains.cf

smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
  reject_non_fqdn_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_unauth_pipelining,
  check_policy_service inet:127.0.0.1:10023,
  reject_invalid_hostname

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
inet_protocols = ipv4

The end of  master.cf file

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=smtp:smtp argv=/usr/lib/dovecot/deliver -f ${sender} -d
${user}@${nexthop}
amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1

Thanks


More information about the dovecot mailing list