Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th January 2009, 18:38
UpAndGone UpAndGone is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Angry 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
Reply With Quote
Sponsored Links
  #2  
Old 28th January 2009, 18:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Did you check the /var/spool/mail directory if the mail ended up there?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th January 2009, 16:29
UpAndGone UpAndGone is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
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...
Reply With Quote
  #4  
Old 30th January 2009, 12:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Does mail@somevirtualmailbox.com exist in the MySQL database?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th January 2009, 16:21
UpAndGone UpAndGone is offline
Junior Member
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Does mail@somevirtualmailbox.com exist in the MySQL database?
Yes, like mentioned above, I can connect to the imap account with this very username.
Reply With Quote
  #6  
Old 31st January 2009, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

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"...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
courier, delivery, postfix, virtual

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Error, Debian 3.1 yogi183 Installation/Configuration 6 23rd February 2007 16:11
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
64-bit Debian 3.1 Install Issue naruto Installation/Configuration 14 5th September 2006 04:12
ISPConfig faiture glt50 Installation/Configuration 16 6th July 2006 01:58
Install Error on Debian 3.1 planet_fox Installation/Configuration 4 25th June 2006 17:03


All times are GMT +2. The time now is 23:30.


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