View Full Version : mail to non-existant accounts going to root
ctql
5th September 2006, 19:18
All emails that should be bounced because the account doesn't exist are ending up in root's mailbox. How do I stop this? (Sorry, I'm sure this has been answered before but I couldn't find it.)
till
6th September 2006, 11:57
Have you forwarded any account in ISPConfig to the root account?
fobicodam
6th September 2006, 15:36
I bet, youve checked catch all to some main domain's address?
I still believe you must add an alias to admispconfig...
ctql
7th September 2006, 02:04
No to both posts. I have forwarded root to my email address in the /etc/aliases file but I don't see how that would change anything.
till
7th September 2006, 12:09
Does this apply to your system:
http://www.howtoforge.com/faq/9_33_en.html
ctql
24th October 2006, 20:33
I did match the link you posted before but I've reset the domain names so the server isn't on the same domain as ones I'm hosting. The problem hasn't gone away. Any other ideas?
edge
24th October 2006, 20:42
Not sure if this will work for you (it did for me)
Open: /etc/postfix/main.cf, and add local_recipient_maps = $alias_maps
After this you will need to to a: postfix reload
Postfix will now look in $alias_maps. If the user does not exisit it will bounce the message
The attached message had PERMANENT fatal delivery errors!
After one or more unsuccessful delivery attempts the attached message has
been removed from the mail queue on this server. The number and frequency
of delivery attempts are determined by local configuration parameters.
YOUR MESSAGE WAS NOT DELIVERED TO ONE OR MORE RECIPIENTS!
ctql
26th October 2006, 11:46
Still receiving emails to root@anydomain, webmaster@anydomain, and (confusingly) alicia@anydomain
should I comment out this line:
alias_maps = hash:/etc/aliases
I assume that's why I'm receiving mail to root and webmaster, but the alicia isn't listed in there so that has me confused.
falko
27th October 2006, 15:47
I think it's better to modify /etc/aliases and run newaliases afterwards.
What's in /etc/aliases? What's the output of grep alicia /etc/passwd?
ctql
27th October 2006, 18:38
web16_alicia:x:10032:10016:alicia:/home/www/web16/user/web16_alicia:/bin/false
alicia is an account that exists on the server, and my own email exists on a different server.
I have in /etc/aliases:
root: myemail@mydomain.com
because I want to get any important root email like log watch.
falko
28th October 2006, 18:47
I have in /etc/aliases:
root: myemail@mydomain.com
I assume you also have
webmaster: root
in there? That explains why you get mails for webmaster and root.
Regarding alicia: did you enable forwarding for that account to your email address in ISPConfig?
ctql
28th October 2006, 19:14
No, alicia isn't forwarding. There's also been a couple emails arriving at the wrong mailboxes other than mine. I just get the bulk of it. As for the webmaster, yes you're correct. That's why I was asking if I could get rid of this line: alias_maps = hash:/etc/aliases
falko
29th October 2006, 15:07
That's why I was asking if I could get rid of this line: alias_maps = hash:/etc/aliases
I'd just change the webmaster line in /etc/aliases or delete the line if you don't need it. Run newaliases afterwards.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.