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 21st September 2006, 18:18
dabest80 dabest80 is offline
Junior Member
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Users/Domains with Postfix for FC5 - Errors

Alright, I followed the very helpful tutorial, but I'm still experiencing a few problems. I have a perfect connection when I telnet into my SMTP and POP3 services both locally and remotely. But, the real problem begins when I try to authenticate into my account. I receive the following error after I try to login with a user "xxxx@xxxx.com" and the correct password in the POP3 connection:

Quote:
-ERR chdir xxxx.com/xxxx/ failed
Connection closed by foreign host.
I've read all of the threads on here about this issue, so I know to resolve this I need to send an email to this user account. I have to do this so it will create my account, before I can log into it through POP3.

Well, I've tried sending myself an email using the following command locally:

Code:
echo welcome | mail xxxx@xxxx.com
When I do that, I receive the following messages in my /var/log/maillog file.

Quote:
Sep 21 11:04:36 mail2 sendmail[5064]: k8LG4abi005064: from=root, size=41, class=0, nrcpts=1, msgid=<200609211604.k8LG4abi005064@mail2.xxxx.com> , relay=root@localhost
Sep 21 11:04:36 mail2 postfix/smtpd[5065]: connect from mail2.xxxx.com[127.0.0.1]
Sep 21 11:04:36 mail2 sendmail[5064]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Sep 21 11:04:36 mail2 postfix/smtpd[5065]: NOQUEUE: reject: RCPT from mail2.xxxx.com[127.0.0.1]: 550 <xxxx@mail2.xxxx.com>: Recipient address rejected: User unknown in local recipient table; from=<root@mail2.xxxx.com> to=<xxxx@mail2.xxxx.com> proto=ESMTP helo=<mail2.xxxx.com>
Sep 21 11:04:36 mail2 sendmail[5064]: k8LG4abi005064: to=xxxx@xxxx.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Sep 21 11:04:36 mail2 sendmail[5064]: k8LG4abi005064: k8LG4abj005064: DSN: User unknown
Sep 21 11:04:36 mail2 postfix/smtpd[5065]: DD6E7BF86D: client=mail2.xxxx.com[127.0.0.1]
Sep 21 11:04:36 mail2 postfix/cleanup[5072]: DD6E7BF86D: message-id=<200609211604.k8LG4abj005064@mail2.xxxx.com>
Sep 21 11:04:36 mail2 postfix/qmgr[1735]: DD6E7BF86D: from=<>, size=2669, nrcpt=1 (queue active)
Sep 21 11:04:36 mail2 sendmail[5064]: k8LG4abj005064: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31065, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as DD6E7BF86D)
Sep 21 11:04:37 mail2 postfix/smtpd[5065]: disconnect from mail2.xxxx.com[127.0.0.1]
Sep 21 11:04:43 mail2 postfix/smtpd[5078]: connect from unknown[127.0.0.1]
Sep 21 16:04:43 mail2 postfix/smtpd[5078]: 0DC0BBF818: client=unknown[127.0.0.1]
Sep 21 11:04:43 mail2 postfix/cleanup[5072]: 0DC0BBF818: message-id=<200609211604.k8LG4abj005064@mail2.xxxx.com>
Sep 21 11:04:43 mail2 postfix/qmgr[1735]: 0DC0BBF818: from=<>, size=3153, nrcpt=1 (queue active)
Sep 21 16:04:43 mail2 postfix/smtpd[5078]: disconnect from unknown[127.0.0.1]
Sep 21 11:04:43 mail2 amavis[1901]: (01901-03) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <> -> <root@mail2.xxxx.com>, Message-ID: <200609211604.k8LG4abj005064@mail2.xxxx.com>, mail_id: Ln7MosruMELl, Hits: -1.441, queued_as: 0DC0BBF818, 6161 ms
Sep 21 11:04:43 mail2 postfix/smtp[5073]: DD6E7BF86D: to=<root@mail2.xxxx.com>, relay=127.0.0.1[127.0.0.1], delay=7, status=sent (250 2.6.0 Ok, id=01901-03, from MTA([127.0.0.1]:10025): 250 Ok: queued as 0DC0BBF818)
Sep 21 11:04:43 mail2 postfix/qmgr[1735]: DD6E7BF86D: removed
Sep 21 11:04:43 mail2 postfix/local[5080]: 0DC0BBF818: to=<root@mail2.xxxx.com>, relay=local, delay=0, status=sent (delivered to mailbox)
Sep 21 11:04:43 mail2 postfix/qmgr[1735]: 0DC0BBF818: removed
I've read all of the threads and I've looked through my Postfix .cf files for errors. I've made sure the my domain hostnames are correct. Can somebody please give me some ideas where to begin to pinpoint this issue? I don't know if my Postfix is successfully pulling the SQL data or not. Hope to hear something ASAP. Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 21st September 2006, 21:41
dabest80 dabest80 is offline
Junior Member
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The VRFY command is returning the correct response when I telnet into the server through a SMTP connection. It doesn't say that the user is not found in the recipient table. So, are my issues DNS related? I can provide more logs to try to fix this matters. Thanks in advance!
Reply With Quote
  #3  
Old 22nd September 2006, 13:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Make sure that the domain xxxx.com isn't listed in mydestination and in your domains table 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
  #4  
Old 22nd September 2006, 14:25
dabest80 dabest80 is offline
Junior Member
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the response. Well, I checked and "xxxx.com" was listed in the mydestination field on the main.cf file. I removed it, restarted postfix, and it still doesn't work. In the main.cf file, here's a look at it:

Quote:
.....
mydestination = mail2.xxxx.com, mail2, localhost, localhost.localdomain
.....
myhostname = mail2.xxxx.com
mynetworks = 127.0.0.0/8
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
......
Here's a look at my /etc/hosts file:

Quote:
127.0.0.1 mail2.xxxx.com mail2 xxxx.com localhost.localdomain localhost
192.168.0.156 mail2.xxxx.com mail2 xxxx.com
Are there any other things that need to be configured that aren't mentioned in the tutorial that could be the reason for this error:

Quote:
Sep 22 06:53:29 mail2 postfix/smtpd[10983]: NOQUEUE: reject: RCPT from mail2.xxxx.com[127.0.0.1]: 550 <username@mail2.xxxx.com>: Recipient address rejected: User unknown in local recipient table; from=<root@mail2.xxxx.com> to=<username@mail2.xxxx.com> proto=ESMTP helo=<mail2.xxxx.com>
It looks like it's checking for the FQDN username@mail2.xxxx.com in the virtual tables rather than checking for username@xxxx.com. My domains tables looks like this:

Quote:
domain
xxxx.com
I have no entries in my forwardings or transport sql tables (which I don't think that should have an effect on what I'm trying to accomplish at this point). I'm running 2.6.17-1.2187_FC5 kernel and I used the repository listed in the tutorial for my installs. I'm not seeing anything that would make me think it's not operating correctly except the domain mismatch stuff. I think it's close to working. Any other suggestions?
Reply With Quote
  #5  
Old 22nd September 2006, 17:58
chrishenley chrishenley is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Little problem

Thanks for this guide. It was helpful. The only problem I had was that postfix couldn't create the new domain directories in /home/vmail unless I chmod'd 777. Is this because postfix is running as postfix and cannot write to /home/vmail?

Has anyone figured out vacation notices? To me, this would complete the virtual mail solution.
Reply With Quote
  #6  
Old 23rd September 2006, 15:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by dabest80
It looks like it's checking for the FQDN username@mail2.xxxx.com in the virtual tables rather than checking for username@xxxx.com.
Are you sending to username@xxxx.com, username@mail2.xxxx.com, or just username?
__________________
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
  #7  
Old 23rd September 2006, 15:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by chrishenley
Thanks for this guide. It was helpful. The only problem I had was that postfix couldn't create the new domain directories in /home/vmail unless I chmod'd 777. Is this because postfix is running as postfix and cannot write to /home/vmail?

Has anyone figured out vacation notices? To me, this would complete the virtual mail solution.
Please open a new thread for this.
__________________
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
  #8  
Old 25th September 2006, 21:31
dabest80 dabest80 is offline
Junior Member
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Are you sending to username@xxxx.com, username@mail2.xxxx.com, or just username?
I'm using the username "username@xxxx.com", but it shows this:

Quote:
Sep 21 11:04:36 mail2 sendmail[5064]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Sep 21 11:04:36 mail2 postfix/smtpd[5065]: NOQUEUE: reject: RCPT from mail2.xxxx.com[127.0.0.1]: 550 <xxxx@mail2.xxxx.com>: Recipient address rejected: User unknown in local recipient table; from=<root@mail2.xxxx.com> to=<xxxx@mail2.xxxx.com> proto=ESMTP helo=<mail2.xxxx.com>
Sep 21 11:04:36 mail2 sendmail[5064]: k8LG4abi005064: to=xxxx@xxxx.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Sep 21 11:04:36 mail2 sendmail[5064]: k8LG4abi005064: k8LG4abj005064: DSN: User unknown
Notice the username@mail2.xxxx.com instead of username@xxxx.com
Reply With Quote
  #9  
Old 25th September 2006, 23:42
dabest80 dabest80 is offline
Junior Member
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Alright, I was able to get it to work. I had to make sure that I had an entry in the forwardings table for

Source Destination
------ ----------
@mail2.xxxx.com @xxxx.com

Now, it's working. It delivered my first email to my /home/vmail folder. Thanks for the help! Hope this helps someone else.
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 + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) brianwc HOWTO-Related Questions 6 9th May 2007 02:44
Help with Virtual Users And Domains With Postfix, Courier And MySQL procedure netzach HOWTO-Related Questions 5 20th September 2006 17:52
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
Virtual Users and Domain with Postfix etc - Problems after updating postfix ryv HOWTO-Related Questions 7 22nd November 2005 23:56
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 17:34.


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