Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was follwing the Guid @ http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-12.10. But I ran into some issues.

the first issue was: (mail.log)

Jan 19 21:52:07 ... imapd: Connection, ip=[::ffff:127.0.0.1]
Jan 19 21:52:07 ... imapd: chdir example.eu/jan/: No such file or directory
Jan 19 21:52:07 ... imapd: jan@example.eu: No such file or directory

After a while of googling I found out that the folders are initialy created when I receive my first mail. -> So I sent one: (mail.log)

Jan 19 21:55:51 ... postfix/smtpd[1315]: connect from mx1.uni-trier.de[136.199.224.17]
Jan 19 21:55:51 ... postfix/trivial-rewrite[1278]: warning: do not list domain example.eu in BOTH mydestination and virtual_mailbox_domains
Jan 19 21:55:51 ... postfix/smtpd[1315]: C0A1C231808A: client=mx1.uni-trier.de[136.199.224.17]
Jan 19 21:55:51 ... postfix/cleanup[1318]: C0A1C231808A: message-id=<964FCDEF-1A79-4EE0-A81C-4F8C34E28FEB@uni-trier.de>
Jan 19 21:55:51 ... postfix/qmgr[1177]: C0A1C231808A: from=<prvs=724bee520=XXX@uni-trier.de>, size=1179, nrcpt=1 (queue active)

For me it looks like the mail-server is receiving my mail but the sending account tells me:

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below[...]

Do you have any idea why? I did it exactly the guide way.

Thanks in advance.

EDIT:

share|improve this question
1  
Please add /etc/postfix/main.cf and related courier configuration files. – John Siu Jan 19 '13 at 21:38
    
thanks @cpast for editing. – Langusten Gustel Jan 19 '13 at 21:38
1  
Is there any /home/vmail/<username> directory? – John Siu Jan 20 '13 at 6:59
up vote 1 down vote accepted
  1. main.cf, modify line 34, remove example.eu. Restart postfix

  2. Is there any /home/vmail/ directory?

  3. On the email server, does following command successfully delivery a email to the user?

    mail <username>
    

    Or step 14 on P4 of your link http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-12.10-p4

  4. Line 43, potential error in tutorial

    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    

    Shoule be

    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf
    
  5. Create Maildir manually

    mkdir /home/vmail/<username>
    maildirmake /home/vmail/<username>/Maildir
    chown -R 5000:5000 /home/vmail/<username>
    
share|improve this answer
    
1. I removed it <br> 2. No there is nothing :( 3. I tryed strep 14. And the mail.log output is the following: pastebin.com/prEGpniv --- thanks for your help! – Langusten Gustel Jan 20 '13 at 12:33
1  
mail for mail.example.eu loops back to myself is the problem, I have to go through your main.cf again. – John Siu Jan 20 '13 at 19:39
1  
(1) Check 4 in answer. (2) Do you already have that user in mysql database? – John Siu Jan 20 '13 at 20:00
    
(1) checked. (2) Yes there are. and the Mailserver MX-Record: domain.eu ... still bouncing :( Any other idea? – Langusten Gustel Jan 20 '13 at 21:16
1  
Try 5 in answer. – John Siu Jan 20 '13 at 21:53

You must log in to answer this question.

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