1

What should happen is that [email protected] should be delivered to that users inbox on localhost, user@localhost. Thunderbird works fine at reading user@localhost.

I'm just using a small portion of postfix-dovecot with Ubuntu mailman. How can I get postfix to recognize the FQDN and deliver them to a localhost inbox?

root@dur:~# 
root@dur:~# tail /var/log/mail.err;tail /var/log/mailman/subscribe;postconf -n
Aug 27 18:59:16 dur dovecot: lda(root): Error: chdir(/root) failed: Permission denied
Aug 27 18:59:16 dur dovecot: lda(root): Error: user root: Initialization failed: Initializing mail storage from mail_location setting failed: stat(/root/Maildir) failed: Permission denied (euid=65534(nobody) egid=65534(nogroup) missing +x perm: /root, dir owned by 0:0 mode=0700)
Aug 27 18:59:16 dur dovecot: lda(root): Fatal: Invalid user settings. Refer to server log for more information.
Aug 27 20:09:16 dur postfix/trivial-rewrite[15896]: error: open database /etc/postfix/transport.db: No such file or directory
Aug 27 21:19:17 dur postfix/trivial-rewrite[16569]: error: open database /etc/postfix/transport.db: No such file or directory
Aug 27 22:27:00 dur postfix[17042]: fatal: usage: postfix [-c config_dir] [-Dv] command
Aug 27 22:29:19 dur postfix/trivial-rewrite[17062]: error: open database /etc/postfix/transport.db: No such file or directory
Aug 27 22:59:07 dur postfix/postfix-script[17459]: error: unknown command: 'restart'
Aug 27 22:59:07 dur postfix/postfix-script[17460]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: error: open database /etc/postfix/transport.db: No such file or directory
Aug 27 21:39:03 2012 (16734) cola: pending "[email protected]" <[email protected]>  127.0.0.1
Aug 27 21:40:37 2012 (16749) cola: pending "[email protected]" <[email protected]>  127.0.0.1
Aug 27 22:45:31 2012 (17288) gmane.mail.mailman.user.1: pending [email protected]  127.0.0.1
Aug 27 22:45:46 2012 (17293) gmane.mail.mailman.user.1: pending [email protected]  127.0.0.1
Aug 27 23:02:01 2012 (17588) test3: pending [email protected]  127.0.0.1
Aug 27 23:05:41 2012 (17652) test4: pending [email protected]  127.0.0.1
Aug 27 23:56:20 2012 (17985) test5: pending [email protected]  127.0.0.1
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
default_transport = smtp
home_mailbox = Maildir/
inet_interfaces = loopback-only
mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-mail-stack-delivery.conf -m "${EXTENSION}"
mailbox_size_limit = 0
mailman_destination_recipient_limit = 1
mydestination = dur, dur.bounceme.net, localhost.bounceme.net, localhost
myhostname = dur.bounceme.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
relay_domains = lists.dur.bounceme.net
relay_transport = relay
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
smtpd_tls_mandatory_ciphers = medium
smtpd_tls_mandatory_protocols = SSLv3, TLSv1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
root@dur:~# 

there's definitely a transport problem:

root@dur:~# 
root@dur:~# 
root@dur:~# grep transport /var/log/mail.log | tail
Aug 27 22:29:19 dur postfix/trivial-rewrite[17062]: warning: hash:/etc/postfix/transport lookup error for "[email protected]"
Aug 27 22:29:19 dur postfix/trivial-rewrite[17062]: warning: transport_maps lookup failure
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: error: open database /etc/postfix/transport.db: No such file or directory
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: warning: hash:/etc/postfix/transport is unavailable. open database /etc/postfix/transport.db: No such file or directory
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: warning: hash:/etc/postfix/transport lookup error for "*"
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: warning: hash:/etc/postfix/transport is unavailable. open database /etc/postfix/transport.db: No such file or directory
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: warning: hash:/etc/postfix/transport lookup error for "*"
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: warning: hash:/etc/postfix/transport is unavailable. open database /etc/postfix/transport.db: No such file or directory
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: warning: hash:/etc/postfix/transport lookup error for "[email protected]"
Aug 27 23:39:17 dur postfix/trivial-rewrite[17794]: warning: transport_maps lookup failure
root@dur:~# 

trying to add the transport file:

EDIT

root@dur:~# 
root@dur:~# touch /etc/postfix/transport 
root@dur:~# ll /etc/postfix/transport 
-rw-r--r-- 1 root root 0 Aug 28 00:16 /etc/postfix/transport
root@dur:~# 
root@dur:~# cd /etc/postfix/
root@dur:/etc/postfix# 
root@dur:/etc/postfix# postmap transport
root@dur:/etc/postfix# 
root@dur:/etc/postfix# cat transport
9
  • What does postconf -n say?
    – quanta
    Aug 28, 2012 at 5:26
  • 1
    @quanta updated question with that.
    – Thufir
    Aug 28, 2012 at 5:32
  • 1
    Where's the rest of the mail log entries? Aug 28, 2012 at 5:40
  • @MichaelHampton I updated the question a bit, and will incorporate Laurentiu's answer, although I'm not sure how to check relay_transport.
    – Thufir
    Aug 28, 2012 at 5:54
  • 1
    Create an empty file /etc/postfix/transport if it does not exists. Go to /etc/postfix and run 'postmap transport'. Aug 28, 2012 at 7:11

1 Answer 1

2
default_transport=error 

permits only local delivery. Try change it to

default_transport=smtp

Check also relay_transport.

2
  • thanks, I've incorporated that and will test it. Not sure how to check relay_transport yet.
    – Thufir
    Aug 28, 2012 at 5:58
  • I think it should be commented out or changed to relay_transport=relay. Aug 28, 2012 at 6:34

Not the answer you're looking for? Browse other questions tagged .