Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I have set up postfix with virtual_mailbox_domains=mydomain.com virtual_mailbox_base=/var/spool/mail virtual_uid_maps=static:1002 virtual_gid_maps=static:1002 /var/spool/mail is owned by user root gid 12 (is this odd?) /var/spool/mail/vmail is owned by uid 1002 gid 1002 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2004
    Location
    Shetland UK
    Posts
    6

    Postfix - virtual domains: 550-Mailbox unknown


    Hello,

    I have set up postfix with
    virtual_mailbox_domains=mydomain.com
    virtual_mailbox_base=/var/spool/mail
    virtual_uid_maps=static:1002
    virtual_gid_maps=static:1002

    /var/spool/mail is owned by user root gid 12 (is this odd?)
    /var/spool/mail/vmail is owned by uid 1002 gid 1002
    /var/spool/mail/vmail/mydomain.com is owned by uid 1002 and gid 1002
    ../vmail/mydomain.com/test is owned by uid 1002 and gid 1002

    I attempt delivery to test@mydomain.com and delivery seems to fail due to a problem with the mailbox - here is the error report

    Diagnostic-Code: X-Postfix; host /var/imap/socket/lmtp[/var/imap/socket/lmtp]
    said: 550-Mailbox unknown. Either there is no mailbox associated with this
    550-name or you do not have authorization to see it. 550 5.1.1 User unknown
    (in reply to RCPT TO command)

    Does what I have done look right? I can post the main.cf if necessary.
    Any ideas where I should check next?

    Thanks,

    Chris

  2. #2
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    <variant> anyone know hte answer to this: http://www.linuxforums.org/forum/viewtopic.php?t=21838
    <vigge> variant, you need to run "maildirmake" with some parameters
    <vigge> to make a .Maildir in /var/spool/mail/domain.com/test/

    Hope this helps!

  3. #3
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    did you post taht on another forum?
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    May 2004
    Location
    Shetland UK
    Posts
    6
    qub333: No, I made a related post here a day ago, but I deleted it since I had phrased my question poorly, and replaced it with the above post instead.

    Ok, I don't have th makemaildir command as I don't use courier, however I made the .maildir directory and changed ownership to vmail:vmail, still with the same message.


    19668E60A: to=<test@domain.co.uk>, relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=0, status=bounced (host /var/imap/socket/lmtp[/var/imap/socket/lmtp] said: 550-Mailbox unknown. Either there is no mailbox associated with this 550-name or you do not have authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO command))

    Why is 'user unknown' showing up when in the log, just prior to bounce I can see:

    Jul 25 17:03:59 hostname postfix/smtpd[5340]: maps_find: virtual_mailbox_maps:
    hash:/etc/postfix/virtual: test@domain.co.uk = domain.co.uk/test@domain.co.uk/.maildir/

    Thanks - I must surely be close to the solution.

    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •