Postfix delivers mail to non existing virtual user

Discussion in 'Server Operation' started by garson, Nov 10, 2012.

  1. garson

    garson New Member

    I have Ubuntu 11.04, Postfix, Dovecot installed.
    I've noticed when I send mail from [email protected] (existing virtual user) to non existing [email protected] (non existing virtual user), mail is "delivered", folder user2 is created in
    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=<[email protected]>
    postfix/cleanup[6427]: 3A38745BCF: message-id=<[email protected]>
    postfix/qmgr[2215]: 3A38745BCF: from=<[email protected]>, size=676, nrcpt=1 (queue active)
    postfix/pipe[6431]: 3A38745BCF: to=<[email protected]>, 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 [email protected], I get:
    SMTP error: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table

    How can I resolve this? When I send from [email protected] to non existing [email protected] I should get similar message.

    Thanks in advance.
  2. falko

    falko Super Moderator ISPConfig Developer

    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?
  3. garson

    garson New Member

    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.

  4. falko

    falko Super Moderator ISPConfig Developer

    Then the account does not exist on your ISP's server.

    Which tutorial did you use? What's in /etc/postfix/
  5. garson

    garson New Member

    On ISP's server there is just one account, lets say [email protected] All mails for @mydomain are fetched to my server using fetchmail.

    This is my :
    Thanks in advance.
  6. garson

    garson New Member

    I haven't resolved this yet.
    In dovecot-deliver.log I've found this:
    deliver([email protected]): Info: msgid=<[email protected]>: saved mail to INBOX

    [email protected] 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?

  7. garson

    garson New Member

    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?
    Last edited: Dec 10, 2012
  8. garson

    garson New Member

    Problem was in webmails. They delivered messages using sendmail, so I've changed it to SMTP. :)

Share This Page