Hi. I have Ubuntu 11.04, Postfix, Dovecot installed. I've noticed when I send mail from user@mydomain (existing virtual user) to non existing user2@mydomain (non existing virtual user), mail is "delivered", folder user2 is created in /home/vmail/mydomain/ with Maildir in it. Sending user doesn't get any message that user is unknown. In mail.log I have found these lines: postfix/pickup[2214]: 3A38745BCF: uid=33 from=<user@mydomain> postfix/cleanup[6427]: 3A38745BCF: message-id=<[email protected]> postfix/qmgr[2215]: 3A38745BCF: from=<user@mydomain>, size=676, nrcpt=1 (queue active) postfix/pipe[6431]: 3A38745BCF: to=<user2@mydomain>, relay=dovecot, delay=0.04, delays=0.02/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service) postfix/qmgr[2215]: 3A38745BCF: removed When I send mail from [email protected] to non existing user2@mydomain, I get: SMTP error: 550 5.1.1 <user2@mydomain>: Recipient address rejected: User unknown in virtual mailbox table How can I resolve this? When I send from user@mydomain to non existing user2@mydomain I should get similar message. Thanks in advance.
Are you sure that Gmail sends this mail to the same server? I.e., does the MX record of the domain point to the server you're having this problem on?
I didn't provide this detail. My server is fetching mails from ISPs server (using fetchmail), and sending mails through ISPs server. This is what I get when trying to send mail from gmail to non existing user @mydomain.
Then the account does not exist on your ISP's server. Which tutorial did you use? What's in /etc/postfix/main.cf?
On ISP's server there is just one account, lets say user@ispdomain. All mails for @mydomain are fetched to my server using fetchmail. This is my main.cf : Thanks in advance.
I haven't resolved this yet. In dovecot-deliver.log I've found this: deliver(someuser@mydomain): Info: msgid=<[email protected]>: saved mail to INBOX someuser@mydomain does not exist and folder someuser is created in /home/vmail/mydomain. But when I remove allow_all_users=yes in userdb static section in devecot.conf, mail is not "delivered" (new folder not created) but no mail message to sender that delivery failed. Should postfix check if user exists before passing to dovecot for delivery? Thanks.
When I try this in Thunderbird (local network), I get User unknown in virtual mailbox table, which is good. But, when I try to send using Horde/Roundcube/SquirrelMail, mail is "delivered". Any thoughts about this?