Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th March 2009, 06:20
ghost1227 ghost1227 is offline
Junior Member
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig3 interesting mail issues...

I just started using ISPConfig3, and so far I love it! I am having an interesting issue though, I set up a domain and an email account to go with it... I can send fine from the email account, but whenever someone replies they get the following message back from the server.

Code:
This is the mail system at host xxx.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<yyy@xxx.com>: unknown user: "yyy"



Reporting-MTA: dns; xxx.com
X-Postfix-Queue-ID: A6AF92870E
X-Postfix-Sender: rfc822; yyy@zzz.us
Arrival-Date: Thu,  5 Mar 2009 05:12:48 +0000 (UTC)

Final-Recipient: rfc822; yyy@xxx.com
Original-Recipient: rfc822;yyy@xxx.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "yyy"
Anyone have any idea what's wrong here?
Reply With Quote
Sponsored Links
  #2  
Old 6th March 2009, 13:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Does the MX record for xxx.com point to the correct server? You can check that with
Code:
dig mx xxx.com
__________________
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 9th March 2009, 23:16
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

I'm having the same issue.... dig mx mydomain.com works fine...

Here is what I'm getting when sending to test@mydomain, when it should be caught and sent to the mail forwarder. The catch-all is exposed, when it shouldn't be...
================================================== ===========

This is the mail system at host mail.mydomain.net.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<webmaster@mydomain.com> (expanded from <test@mydomain.com>): user
unknown. Command output: ERR: authdaemon: s_connect() failed: Permission
denied Invalid user specified.

Final-Recipient: rfc822; webmaster@mydomain.com
Original-Recipient: rfc822;test@mydomain.com
Action: failed
Status: 5.1.1
Diagnostic-Code: x-unix; ERR: authdaemon: s_connect() failed: Permission denied
Invalid user specified.


---------- Forwarded message ----------
From: ********@gmail.com>
To: test@mydomain.com
Date: Mon, 9 Mar 2009 15:09:49 -0700
Subject: asdf
asdf
Reply With Quote
  #4  
Old 9th March 2009, 23:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,376
Thanks: 833
Thanked 5,479 Times in 4,313 Posts
Default

@ghost1227: please take a look in the mail_user table and make sure that you have a record there with the email address "yyy@xxx.com".

@quentusrex: Is the email address test@mydomain listed in the mail user table?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 10th March 2009, 00:51
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

Yes, it's in here. I added the vmail user to the /etc/postfix/master.cf file in the maildrop line... Now I don't get the same error...

Now I see where maildrop is suppose to deliver the mail, and I never see a log entry or the e-mail after that...
Reply With Quote
  #6  
Old 10th March 2009, 00:53
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
Default

I changed it from

# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}



to



# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=R user=vmail argv=/usr/bin/maildrop -d vmail ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
Reply With Quote
  #7  
Old 10th March 2009, 03:40
ghost1227 ghost1227 is offline
Junior Member
 
Join Date: Mar 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Resolved

My issue has been resolved. It was an issue with the myhostname variable in main.cf
Reply With Quote
  #8  
Old 10th March 2009, 10:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,376
Thanks: 833
Thanked 5,479 Times in 4,313 Posts
Default

Quote:
Now I see where maildrop is suppose to deliver the mail, and I never see a log entry or the e-mail after that...
Thats because you added "vmail" to the maildropline. The order of the parameters matters, so if you add vmail there all other parameters are shifted to the right and so all delivery information is wrong and the email gets lost.

I use the maildrop line "flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}" on seceral mail systems in production without an error so there is no need to change it and changing it will just result in loosing emails as you see.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 31st March 2009, 04:18
bigshiny90 bigshiny90 is offline
Junior Member
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default my solution

so i was getting the same error on my new ispconfig3 install.

here's what i did. in my case, the problem only arose when i was making an email with the same domain as the server itself. ie. blah@xxx.com and my servers hostname is xxx.com. all other new emails could have email sent to them without the email being refused.

i simply removed my server hostname from mydestination in postfix's main.cf. i guess the postfix installation or the ispconfig installation set this. i don't know if this creates any problems otherwise, but everything works now. i had previously did a manual postfix setup on another server (without ispconfig), and the 'mydestination' field also did not have the hostname.

maybe this helps somebody.

okay out...
Reply With Quote
The Following User Says Thank You to bigshiny90 For This Useful Post:
SudoCat (6th May 2014)
  #10  
Old 3rd April 2009, 18:37
quentusrex quentusrex is offline
Senior Member
 
Join Date: May 2008
Posts: 174
Thanks: 6
Thanked 11 Times in 7 Posts
 
Default

I'm still getting issues. I send e-mail through my gmail account to any of my domains and I still get teh same e-mail back...

user unknown. Command output: ERR: authdaemon: s_connect() failed: Permission
denied Invalid user specified.
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
procmail can't write Hellbound General 27 8th June 2009 21:51
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 13:54.


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