HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Postfix not delivering to virtual user directory (http://www.howtoforge.com/forums/showthread.php?t=30687)

UpAndGone 27th January 2009 18:38

Postfix not delivering to virtual user directory
 
Hi,

I'm trying to set up postfix, courier, mysql on a debian etch box like described in one of the howtos. Courier is working fine. I can connect to my virutal mailboxes with outlook, authenticate and copy messages to the inbox folders. They end up in the proper directory /home/vmail/domain/user.

However, messages that I try to send from localhost (or by using fetchmail) somehow don't get stored in the vmail folder. I don't see any errors in the log file, so I really have no clue what's going on. Any help is much appreciated.

Thanks,
Chris

---

$:/home/chris# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter =
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mailbox_size_limit = 0
mydestination = virtual123, virtual123.myserver.net, localhost.myserver.net, localhost
myhostname = virtual123.myserver.net
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
readme_directory = /usr/share/doc/postfix
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_uid_maps = static:5000

---
/var/log/mail.log

Jan 27 17:46:39 h1077136 postfix/virtual[32766]: sender: sender@test.de
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: recipient: mail@somevirtualmailbox.com
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: user: mail@somevirtualmailbox.com
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: delivered: mail@somevirtualmailbox.com
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: relay: virtual
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: why: buffer
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: deliver_mailbox[2]: recip mail@somevirtualmailbox.com deliver mail@somevirtualmailbox.com
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: dict_mysql_get_active: attempting to connect to host 127.0.0.1
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: dict_mysql: successful connection to host 127.0.0.1
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: dict_mysql: successful query from host 127.0.0.1
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: dict_mysql_lookup: retrieved 1 rows
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: maps_find: virtual_mailbox_maps: proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf(0,lock|no_regsub|no_prox
y|no_unauth): mail@somevirtualmailbox.com = 1
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: mail_addr_find: mail@somevirtualmailbox.com -> 1
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: maps_find: virtual_uid_maps: static:5000(0,lock|no_regsub|no_proxy|no_unauth): mail@somevirtualmailbox.com = 5000
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: mail_addr_find: mail@somevirtualmailbox.com -> 5000
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: maps_find: virtual_gid_maps: static:5000(0,lock|no_regsub|no_proxy|no_unauth): mail@somevirtualmailbox.com = 5000
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: mail_addr_find: mail@somevirtualmailbox.com -> 5000
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: deliver_mailbox[2]: set user_attr: /home/vmail/1, uid = 5000, gid = 5000
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: deliver_mailbox_file[3]: recip mail@somevirtualmailbox.com deliver mail@somevirtualmailbox.com
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: set_eugid: euid 5000 egid 5000
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: set_eugid: euid 104 egid 107
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: E476D22D9560: to=<mail@somevirtualmailbox.com>, relay=virtual, delay=0.28, delays=0.15/0.09/0/0.04, dsn=2.0.0, sta
tus=sent (delivered to mailbox)
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: deliver_request_final: send: "" 0
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr status =
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr diag_type =
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr diag_text =
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr mta_type =
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr mta_mname =
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr action =
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr reason =
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: send attr status = 0
Jan 27 17:46:39 h1077136 postfix/qmgr[25874]: E476D22D9560: removed
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: master_notify: status 1
Jan 27 17:46:39 h1077136 postfix/virtual[32766]: connection closed

falko 28th January 2009 18:25

Did you check the /var/spool/mail directory if the mail ended up there?

UpAndGone 29th January 2009 16:29

Quote:

Originally Posted by falko (Post 166752)
Did you check the /var/spool/mail directory if the mail ended up there?

Yup, I did. Nothing in there. Seems like the mails get lost. Im really stuck at this point...

falko 30th January 2009 12:18

Does mail@somevirtualmailbox.com exist in the MySQL database?

UpAndGone 30th January 2009 16:21

Quote:

Originally Posted by falko (Post 167023)
Does mail@somevirtualmailbox.com exist in the MySQL database?

Yes, like mentioned above, I can connect to the imap account with this very username.

falko 31st January 2009 13:37

Quote:

Jan 27 17:46:39 h1077136 postfix/virtual[32766]: E476D22D9560: to=<mail@somevirtualmailbox.com>, relay=virtual, delay=0.28, delays=0.15/0.09/0/0.04, dsn=2.0.0, sta
tus=sent (delivered to mailbox)
I wonder why it says "delivered to mailbox" - it should say "delivered to Maildir"... :confused:


All times are GMT +2. The time now is 03:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.