Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th July 2007, 18:45
knight_killer knight_killer is offline
Junior Member
 
Join Date: Jul 2007
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
Default 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_po...er_ubuntu_edgy

I tried it under Ubuntu Feisty Fawn.
I want a Mailbox "test@roman-ganz.net" 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:
<test@roman-ganz.net>: 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=<20070717182907.ea0nqmvsao0s0kgk@www.sylon.net>
Jul 17 18:29:07 <host> postfix/qmgr[18140]: 9C10317A50142: from=<mail.adress@server.com>, 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=<test@roman-ganz.net>, 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=<20070717162907.AAC3517A50148@roman-ganz.net>
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=<mail.adress@server.com>, 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 "mail.adress@server.com")

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 by knight_killer; 18th July 2007 at 21:12.
Reply With Quote
Sponsored Links
  #2  
Old 18th July 2007, 18:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
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
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th July 2007, 21:10
knight_killer knight_killer is offline
Junior Member
 
Join Date: Jul 2007
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
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.
Yes, your the man! I should really better read the logs
But in this case the HOWTO is wrong on Page 2:
Code:
postconf -e 'myhostname = server1.example.com'
postconf -e 'mydestination = server1.example.com, 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
Reply With Quote
  #4  
Old 19th July 2007, 15:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Quote:
Originally Posted by knight_killer
But in this case the HOWTO is wrong on Page 2:
Code:
postconf -e 'myhostname = server1.example.com'
postconf -e 'mydestination = server1.example.com, 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'
I don't use server1.example.com for virtual mail accounts, so the tutorial is right.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft)" 4integration HOWTO-Related Questions 40 28th September 2007 04:41
Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft) jhdtolentino HOWTO-Related Questions 6 22nd June 2007 03:23
Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 6.10 Edgy Eft) Aurora HOWTO-Related Questions 1 18th June 2007 11:29
Virtual Users And Domains With Postfix, Courier And MySQL - "apt-get" and Courier burritonator HOWTO-Related Questions 3 15th March 2006 20:11
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 02:53


All times are GMT +2. The time now is 19:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.