On 5/25/2012 3:06 PM, Jan Meyland Andersen wrote: > Hi > > I have a problem with the delivery of mails using dovecot as a > transport. > According to the logfile mails seems to be delivered but nothing > ends up in the maildir. > > my main.cf <http://main.cf> is the following. > > smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) > biff = no > append_dot_mydomain = no > readme_directory = no > smtpd_use_tls=yes > smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache > smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache > smtpd_tls_cert_file = /etc/postfix/smtpd.cert > smtpd_tls_key_file = /etc/postfix/smtpd.key > smtpd_tls_security_level = may > smtpd_tls_received_header = no > smtpd_tls_loglevel = 0 > tls_random_source = dev:/dev/urandom > virtual_mailbox_maps = mysql:/etc/postfix/mysql/aliases.cf > <http://aliases.cf> > virtual_alias_maps = mysql:/etc/postfix/mysql/remote_aliases.cf > <http://remote_aliases.cf> > virtual_uid_maps = mysql:/etc/postfix/mysql/vuids.cf <http://vuids.cf> > virtual_gid_maps = mysql:/etc/postfix/mysql/vgids.cf <http://vgids.cf> > virtual_mailbox_base = /var/spool/postfix/virtual > virtual_mailbox_limit = 102400000 > virtual_alias_domains = > virtual_transport = dovecot > dovecot_destination_recipient_limit = 1 > myhostname = NoiceControl.mydomain > append_dot_mydomain = no > alias_maps = hash:/etc/aliases > alias_database = hash:/etc/aliases > myorigin = /etc/mailname > mydestination = mydomain.dk <http://mydomain.dk>, localhost > relayhost = mail.telenor.dk <http://mail.telenor.dk> > mynetworks = 127.0.0.0/8 <http://127.0.0.0/8> [::ffff:127.0.0.0]/104 > [::1]/128,192.1.1.0/24 <http://192.1.1.0/24> > mailbox_size_limit = 0 > recipient_delimiter = + > inet_interfaces = all > smtpd_sasl_type = dovecot > smtpd_sasl_path = private/auth > smtpd_sasl_auth_enable = yes > smtpd_sasl_exceptions_networks = $mynetworks > smtpd_sasl_security_options = noanonymous > broken_sasl_auth_clients = yes > smtpd_recipient_restrictions = > permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination > smtpd_sasl_type = dovecot > smtpd_sasl_path = private/auth > > My master.cf <http://master.cf> is the standard supplied in debian + > this statement. > dovecot unix - n n - - pipe > flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} > -d ${user}@${nexthop} -a ${recipient} > > > The log file looks like this. > May 25 22:02:42 NoiceControl postfix/smtpd[19683]: connect from > localhost[127.0.0.1] > May 25 22:02:42 NoiceControl dovecot: auth(default): new auth > connection: pid=19683 > May 25 22:02:44 NoiceControl postfix/smtpd[19683]: A16B74A0537: > client=localhost[127.0.0.1] > May 25 22:02:46 NoiceControl postfix/cleanup[19689]: A16B74A0537: > message-id=<[email protected]> > May 25 22:02:46 NoiceControl postfix/qmgr[19412]: A16B74A0537: > from=<[email protected] <mailto:[email protected]>>, size=344, nrcpt=1 > (queue active) > May 25 22:02:46 NoiceControl postfix/smtpd[19683]: disconnect from > localhost[127.0.0.1] > May 25 22:02:46 NoiceControl postfix/local[19691]: A16B74A0537: > to=<[email protected] <mailto:[email protected]>>, orig_to=<jma>, > relay=local, delay=3.2, delays=3.1/0.01/0/0.1, dsn=2.0.0, > status=sent (delivered to mailbox) > May 25 22:02:46 NoiceControl postfix/qmgr[19412]: A16B74A0537: removed > > > I don“t know if this is a postfix or dovecot error?
[post plain text only; the html markup makes the logs harder to read] Looks as if you're trying to use dovecot as the delivery agent for virtual mailbox domains, and your domain is set as a local domain (the is domain listed in mydestination; delivery is by the postfix "local" delivery agent). You'll probably find the previously delivered mail in /var/mail or /var/spool/mail. http://www.postfix.org/ADDRESS_CLASS_README.html http://www.postfix.org/local.8.html http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox -- Noel Jones
