Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)

Discussion in 'HOWTO-Related Questions' started by knight_killer, Jul 17, 2007.

  1. knight_killer

    knight_killer New Member

    Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10) [SOLVED]

    Hi,

    I have problems with this HOWTO: http://www.howtoforge.com/virtual_postfix_mysql_quota_courier_ubuntu_edgy

    I tried it under Ubuntu Feisty Fawn.
    I want a Mailbox "[email protected]" and I have NO Unix-User called "test". I tried to send a Mail from the server "sylon.net" to my new server "roman-ganz.net"

    I cant receive the Mail, getting a delivery Error:
    Code:
    <[email protected]>: unknown user: "test"
    The Maillog is that:
    Code:
    <host>:~# cat /var/log/maillog 
    Jul 17 18:29:07 <host> postfix/smtpd[19471]: connect from www.sylon.net[194.88.212.212]
    Jul 17 18:29:07 <host> postfix/trivial-rewrite[19475]: warning: do not list domain roman-ganz.net in BOTH mydestination and virtual_mailbox_domains
    Jul 17 18:29:07 <host> postfix/smtpd[19471]: 9C10317A50142: client=www.sylon.net[194.88.212.212]
    Jul 17 18:29:07 <host> postfix/cleanup[19476]: 9C10317A50142: message-id=<[email protected]>
    Jul 17 18:29:07 <host> postfix/qmgr[18140]: 9C10317A50142: from=<[email protected]>, size=837, nrcpt=1 (queue active)
    Jul 17 18:29:07 <host> postfix/trivial-rewrite[19475]: warning: do not list domain roman-ganz.net in BOTH mydestination and virtual_mailbox_domains
    Jul 17 18:29:07 <host> postfix/smtpd[19471]: disconnect from www.sylon.net[194.88.212.212]
    Jul 17 18:29:07 <host> postfix/local[19477]: 9C10317A50142: to=<[email protected]>, relay=local, delay=0.09, delays=0.05/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "test")
    Jul 17 18:29:07 <host> postfix/cleanup[19476]: AAC3517A50148: message-id=<[email protected]>
    Jul 17 18:29:07 <host> postfix/qmgr[18140]: AAC3517A50148: from=<>, size=2594, nrcpt=1 (queue active)
    Jul 17 18:29:07 <host> postfix/bounce[19478]: 9C10317A50142: sender non-delivery notification: AAC3517A50148
    Jul 17 18:29:07 <host> postfix/qmgr[18140]: 9C10317A50142: removed
    Jul 17 18:29:08 <host> postfix/smtp[19479]: AAC3517A50148: to=<[email protected]>, relay=a.mx.sylon.net[194.88.212.3]:25, delay=0.48, delays=0.02/0.01/0.41/0.04, dsn=2.0.0, status=sent (250 Ok: queued as 2779078108)
    Jul 17 18:29:08 <host> postfix/qmgr[18140]: AAC3517A50148: removed
    (Replaced host name with <host> and email address with "[email protected]")

    The email address and the domain are in the MySQL-Tables. The tables "forwardings" and "transport" are empty.

    I cant get the Mail via IMAP either... :( but I think, we should solve that problem here first.

    Can somebody help me? I'm sure I'm not the first who tried this HOWTO

    greets
    Roman
     
    Last edited: Jul 18, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

    That's the problem: remove roman-ganz.net from the mydestination line in /etc/postfix/local-host-names and restart Postfix.
    A domain can either have virtual users or system users with this setup, but not both at the same time.
     
  3. knight_killer

    knight_killer New Member

    Yes, your the man! I should really better read the logs :D
    But in this case the HOWTO is wrong on Page 2:
    Code:
    postconf -e 'myhostname = server1.example.com'
    postconf -e 'mydestination = [B]server1.example.com,[/B] localhost, localhost.localdomain'
    postconf -e 'mynetworks = 127.0.0.0/8'
    should be:
    Code:
    postconf -e 'myhostname = server1.example.com'
    postconf -e 'mydestination = localhost, localhost.localdomain'
    postconf -e 'mynetworks = 127.0.0.0/8'
    BTW: it was not in /etc/postfix/local-host-names but in the /etc/postfix/main.cf

    Thanks for Help!
    Greets
    Roman
     
  4. falko

    falko Super Moderator ISPConfig Developer

    I don't use server1.example.com for virtual mail accounts, so the tutorial is right. ;)
     

Share This Page