Re: Postfix and virtual users

From: LeVA (leva_at_az.isten.hu)
Date: 01/09/04

  • Next message: Joris: "Re: Changing the name of my computer"
    To: debian-user@lists.debian.org
    Date: Fri, 9 Jan 2004 23:46:46 +0100
    
    

    2004. január 09. 23:36 dátummal LeVA ezt írta:
    Sorry, I've put the wrong host names to the mail. Obviously it isn't
    ecentrum.hu, but az.isten.hu. So the correct email is:

    Hello!

    I've recently set up postfix (postfix-2.0.16, compiled from source),
    and it works great, for local delivery. But I want to manage a number
    of virtual hosts, and users only for email access. I have read the
    postfix-2.0.16/README_FILES/VIRTUAL_README file. What I read was very
    simple; just a few lines, and file creating, and it will work ( I
    thought). I made exactly that, what I read in that readme file. So,
    I've added to main.cf:

    virtual_transport = virtual
    virtual_mailbox_base = /var/mail/virtusers
    virtual_mailbox_maps = hash:/etc/postfix/virtusers/mboxes
    virtual_mailbox_domains = $virtual_mailbox_maps
    virtual_minimum_uid = 5000
    virtual_uid_maps = hash:/etc/postfix/virtusers/uid
    virtual_gid_maps = hash:/etc/postfix/virtusers/gid

    Every files have good/true content, and I've generated the db files
    from the plain text files. Now I only have one virtual account,
    called 'virt@az.isten.hu'.

    /etc/postfix/virtusers/mboxes:
    virt@az.isten.hu virt

    /etc/postfix/virtusers/uid:
    virt@az.isten.hu 5001

    /etc/postfix/virtusers/uid:
    virt@az.isten.hu 5001

    drwxrwxr-x    2 postfix  postfix      4096 /var/mail/virtusers
    -rw-rw----    1 5001     5001            0 /var/mail/virtusers/virt

    I get this error in the mail.log file:

    postfix/smtpd[27864]: 7C02734063: reject: RCPT from host[ip]: 450
    <virt@az.isten.hu>: User unknown in local recipient table;

    It seems that postfix knows nothing about my virtual domains (users).
    I tried to tell postfix, to fall back to virtual delivery if local
    fails:
    in main.cf:

    local_transport = local

    fallback_transport = virtual

    But the error is the same.

    Anyone did this before, and got the same error? Any ideas will be
    appreciated.

    Thanks!

    Daniel

    -- 
    LeVA
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Joris: "Re: Changing the name of my computer"

    Relevant Pages

    • postfix not retrieving mail
      ... Can't telnet to the smtp cause ... # Global Postfix configuration file. ... Specify the name of a user ... # INTERNET HOST AND DOMAIN NAMES ...
      (freebsd-questions)
    • Re: runqueue and syslog
      ... I believe you are referring to messages that time out in the queue because of non delivery. ... going to get assigned a high priority number. ... not if you are using Host Status. ... If I did have your situation where a valid message was being prioritized lower than a non valid message on a regular basis, I would investigate having a queue directory that is for messages that are meant for local delivery, as well as queue directory that is for messages that are not meant for local delivery. ...
      (comp.mail.sendmail)
    • RE: postfix vs. qmail?
      ... >I started using qmail but eventually switched to Postfix. ... >I host multiple virtual domains with Postfix (and Courier-IMAP for the ... setting up multiple domains and charging money for them (as opposed ... You also want the webinterface separate because of the simple reason ...
      (freebsd-questions)
    • [opensuse] Re: postfix: Name service error
      ... tried the host command with the following results: ... Actually, since the first command also outputs a time-out message, ... this probably also gets no answer from the DNS server. ... Before we make postfix work, dig and host must return results. ...
      (SuSE)
    • Re: [opensuse] Martin =?UTF-8?B?R2zDtnR6bC1Lb2NoIFNUT1AgQk9VTkNJ?= =?UTF-8?B?TkcgTElTVCBNQUl
      ... address, mail accumulates, the postmaster sees it, and thinks of rejecting ... undeliverable is only a few days (Postfix has a default of 5 days). ... because "host" says: ... (in reply to RCPT TO command) ...
      (SuSE)