View Full Version : Mail being delivered to wrong user
Sinisfun
8th January 2006, 06:21
Hello all,
I have a few different sites running on ispconfig, the issues I am running into is all of the users can login to their webmail, however they cannot recieve. Their email gets recieved by another user on the server, the same user infact for all domains. Exhample:
send to test@abc.com gets recieved by user@456.com but both are set up as different clients. I have tested this by sending email from hotmail/gmail etc to ensure this was not a local issue.
Any ideas?
-Sin
till
8th January 2006, 13:20
Did you setup a website in ISPConfig with a domain that is identical with the domain of your server?
falko
8th January 2006, 19:17
Maybe this is for you: http://www.howtoforge.com/faq/14_33_en.html
Anything in the mail logs?
Sinisfun
8th January 2006, 20:03
In reply to your first question, I set up a domain of 123.com which is the same as the server identifies itself as. Should I not have done that?
Sinisfun
8th January 2006, 20:04
I read that link that you have sent, however I dont seem to understand what it is instructing me to do.
Sinisfun
8th January 2006, 20:54
This is the output of /etc/postfix.cf
sin@mikethetv:~$ vi /etc/postfix/main.cf
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
myhostname = localhost.localdomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = xxxxxxx.ca, localhost.localdomain, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_maps = hash:/etc/postfix/virtusertable
mydestination = /etc/postfix/local-host-names
If I am following correctly I am to remove my domain name (xxxxxx.ca) from that list. Also are there any setting I should customise in this list?
-Sin
falko
9th January 2006, 00:23
What's the output of hostname and hostname -f?
Sinisfun
9th January 2006, 01:35
Hostnamemikethetv
Hostname -f localhost.localdomain
Oh and I removed xxxxxx.ca from the previous post and no change so should I place it back in there?
-Sin
falko
9th January 2006, 11:24
Oh and I removed xxxxxx.ca from the previous post and no change so should I place it back in there?
-Sin
That makes no difference because the mydestination line is commented out, i.e., it does not get interpreted by Postfix.
What's in /etc/postfix/virtusertable?
Sinisfun
9th January 2006, 19:05
I get the feeling I am 12 hrs behind you.... ;)
Here is the output of virtusertables....
sin@mikethetv:/etc/postfix$ vi virtusertable
web6_jord@www.xxxxxxxxx1.com web6_jord
@www.xxxxxxxxx1.com web6_jord
jord@xxxxxxxxx1.com web6_jord
web6_jord@xxxxxxxxx1.com web6_jord
@xxxxxxxxx1.com web6_jord
mail@www.xxxxxxxxx2.ca web1_mail
web1_mail@www.xxxxxxxxx2.ca web1_mail
mail@xxxxxxxxx2.ca web1_mail
web1_mail@xxxxxxxxx2.ca web1_mail
test@www.xxxxxxxxx1.com web6_test
web6_test@www.xxxxxxxxx1.com web6_test
test@xxxxxxxxx1.com web6_test
web6_test@xxxxxxxxx1.com web6_test
brad@www.xxxxxxxxx3.ca web10_brad
web10_brad@www.xxxxxxxxx3.ca web10_brad
brad@xxxxxxxxx3.ca web10_brad
web10_brad@xxxxxxxxx3.ca web10_brad
rad@www.xxxxxxxxx1.com web6_rad
web6_rad@www.xxxxxxxxx1.com web6_rad
rad@xxxxxxxxx1.com web6_rad
web6_rad@xxxxxxxxx1.com web6_rad
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
-- INSERT -- 63,1 Bot
Each domain name is represented by a number... ie xxxxxxxxx2 or xxxxxxxxx3 I have kept them private in order to retain some privacy... if they are nessisary please PM me and I will provide the entire file...
Thanks for your help.... on a side note I do not see the name of the person recieving all of the emails on this list...
falko
9th January 2006, 19:53
Which of these users is the one that receives all emails?
on a side note I do not see the name of the person recieving all of the emails on this list...What do you mean with that?
Sinisfun
9th January 2006, 20:04
Lee@xxxxxxx2.ca is the user who recieves all if the email... and I dont see that email listed.
falko
9th January 2006, 23:56
Is Lee a normal system user?
Sinisfun
10th January 2006, 02:57
I dont believe he is... how can I quickly verify this? Come to think of it I am almost sure he is not. He was created using ISPconfig.
till
10th January 2006, 11:53
I dont believe he is... how can I quickly verify this?
grep Lee /etc/passwd
Sinisfun
10th January 2006, 22:26
This is the output of that:
sin@mikethetv:~$ grep Lee /etc/passwd
sin:x:1000:1000:Lee Xxxxxx,,,:/home/sin:/bin/bash
web6_test:x:10013:10006:Lee:/home/www/web6/user/web6_test:/bin/false
web1_lee:x:10001:10001:Lee:/home/www/web1:/bin/false
I still dont believe that mail is working correctly... I have deleted the Lee@XXXXXX.ca user email and now it appears to work. I am confused, if the mail is working now this is obviously the problem, however can someone please give me a simple explanation as to why this works this way.
Thanks for all of your help!
falko
10th January 2006, 23:55
Are you sure web1_lee wasn't in /etc/postfix/virtusertable?
Was web1_lee a Catch-All account?
Sinisfun
16th January 2006, 00:36
So it turns out.... Lee was a sys user and a ctach all account... I cangedd his status to not be a catch all and everyone is getting their email again!
Sorry it took so long to reply I have been away.
As always you guys are doing a great job... Thanks again!
nostrada
13th May 2007, 13:05
Hi all,
i have the same Problem:
i have installed the perfect ubuntu 7.04, ispconfig and RoundCube with Adress webmail.xxxxxxxx.ch. Mailserver with Name mailbx.xxxxxxxx.de. This wars befor my backup mailserver, now only for ispconfig.
I recieve messages for User info@xxxxxxxx.ch by sending over the second mailserver on info@yyyyyyy.com.
Never i configure an emailadress info@xxxxxxxx.ch on ispconfig!
No catchall on any adress only i have an website for login from all users on webmail.xxxxxxxx.ch with an postmaster@xxxxxxxx.ch.
here the virtusertable:
postmaster@webmail.xxxxxxxx.ch postmaster
postmaster@xxxxxxxx.ch postmaster
info@www.yyyyyyy.com info
info@yyyyyyy.com info
Sorry for bad english! Can everyone help me.
Thanks so lot
EDIT:
Now i have created an info@xxxxxxxx.ch on postmaster@xxxxxxxx.ch and problem is resolved!
falko
14th May 2007, 17:45
I recieve messages for User info@xxxxxxxx.ch by sending over the second mailserver on info@yyyyyyy.com.
Never i configure an emailadress info@xxxxxxxx.ch on ispconfig!
I guess this happened because you have a system user info on your system, and the MX record for xxxxxxxx.ch is pointing to your ISPConfig server.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.