Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th May 2007, 11:58
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default E-mail delivered to wrong account

This is what I did:
  • Create a site www.domain.tld with DNS and DNS-MX checked. In this site created a user webXX_user1 with e-mail address user1@domain.tld and Administrator and catchAll-Email checked.
  • Create a site user2.domain.tld with DNS checked. In this site created a user webYY_user2 with e-mail address user2@domain.tld and Administrator and catchAll-Email checked.

The problem is that e-mails addressed to user2 end up in the mailbox of user1. After I first discovered that, I also checked DNS-MX of site user2.domain.tld but that doesn't make a difference.

Two observations:
  • When creating a sub domain in this manner, ISPConfig constructs a default e-mail address in the primary domain for users of the sub domain and it can not be changed.
  • Both the primary domain and the sub domain can have the catchAll-Email checked, while e-mail addresses for both domains "live" in the primary domain. I can imagine conflicts arising from that.

Any idea what's going wrong here and how I can solve it?
Reply With Quote
Sponsored Links
  #2  
Old 26th May 2007, 12:25
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default

I figured it out. I'm still a Linux newbie so it took me some time before inspecting /etc/postfix/virtusertable. In there I discovered that the actual e-mail address created for the user of the subdomain is not user2@domain.tld, as ISPConfig shows on the ISP USer form, but user2@user2.domain.tld, just as one might expect. So the apparent problem turns out to be a small bug in ISPConfig.
Reply With Quote
  #3  
Old 26th May 2007, 15:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Quote:
Originally Posted by pjdevries
I figured it out. I'm still a Linux newbie so it took me some time before inspecting /etc/postfix/virtusertable. In there I discovered that the actual e-mail address created for the user of the subdomain is not user2@domain.tld, as ISPConfig shows on the ISP USer form, but user2@user2.domain.tld, just as one might expect. So the apparent problem turns out to be a small bug in ISPConfig.
No thats not a bug, thats the intended behaviour. Email addresses where created for the main domain and all co-domains of a website if you do not set a domain to external mailserver.

You just missed to create a co-domain with empty hostname for this website. This co-domain is created automatically when you did not set the domain limit too low.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 26th May 2007, 15:48
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
Default

Thanx for the reply. Unfortunately I think I totally don't understand what you are trying to explain, which, by the way, is not your fault but probably my lack of knowledge and experience

What I still don't understand is, why ISPConfig shows user@domain.tld as the (default) e-mail address of the user in the sub domain, while I would expect to see user@sub.domain.nl, which is also what I see in /etc/postfix/virtusertable. That's what's confusing me.

By the way, I deliberately did not create a co-domain and followed one of your topics about creating a sub domain by creating a new site in the main domain. Why would I want to "create a co-domain with empty hostname"?
Reply With Quote
  #5  
Old 27th May 2007, 16:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by pjdevries
By the way, I deliberately did not create a co-domain and followed one of your topics about creating a sub domain by creating a new site in the main domain. Why would I want to "create a co-domain with empty hostname"?
Because otherwise you have an email address like user@www.example.com, and not user@example.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
  #6  
Old 27th May 2007, 19:19
pjdevries pjdevries is offline
HowtoForge Supporter
 
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts
 
Thumbs up

Aha, I didn't know that. In this particular case it's not a problem and maybe even preferable, but it's good to keep in mind for other situations.

Thanks again.
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
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
postfix-tls sasl2 mysql courier-authmysql gabrix Server Operation 4 12th January 2007 22:09
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 06:46.


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