Fail to deliver emails to users system accounts

elbarto

Verified User
Joined
Oct 8, 2008
Messages
133
Hi guys,

I'm having a problem and I'm not sure how to fix it, nor where to look :)

My users can't receive emails in their "system accounts". I'm not sure if this is the appropriate name, but I call that the accounts that Directadmin automatically creates for every user as [email protected]

Additionally now I started to have problems with the bouncing emails, which are being frozen because of the limit in /etc/virtual/limit and I don't know how to prevent these emails from getting stuck on my mail queue.

Here are some sample logs:

Code:
2011-03-20 00:07:52 1Q18zg-0005Ye-0q <= [email protected] H=mail-yi0-f46.google.com [209.85.218.46] P=esmtps X=TLSv1:RC4-SHA:128 S=2184 [email protected] T="Test" from <[email protected]> for [email protected]
2011-03-20 00:07:52 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1Q18zg-0005Ye-0q
2011-03-20 00:07:52 1Q18zg-0005Ye-0q ** [email protected] <[email protected]> F=<[email protected]> R=virtual_aliases: 
2011-03-20 00:07:52 1Q18zg-0005Ye-0q ** [email protected] <[email protected]> F=<[email protected]> R=virtual_aliases: 
2011-03-20 00:07:52 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1Q18zg-0005Ye-0q
2011-03-20 00:07:52 1Q18zg-0005ba-7U <= <> R=1Q18zg-0005Ye-0q U=mail P=local S=3285 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2011-03-20 00:07:52 1Q18zg-0005Ye-0q Completed
2011-03-20 00:07:52 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1Q18zg-0005ba-7U
2011-03-20 00:07:52 1Q18zg-0005ba-7U failed to expand condition "${perl{check_limits}}" for lookuphost router: You (unknown) have reached your daily email limit of 450 emails

2011-03-20 00:07:52 1Q18zg-0005ba-7U ** [email protected] F=<>: Unrouteable address
2011-03-20 00:07:52 1Q18zg-0005ba-7U Frozen (delivery error message)

For privacy reasons I replaced the original this in the original data:

- [email protected]: it's a personal Gmail account from which I'm sending emails to my client's account

- [email protected]: it's my client's account ([email protected]).

- [email protected]: it's the address to which [email protected] is translated... where "my.server-fqdn.com" is my server's hostname.

I hope you can help me figure out where's my problem.
Thanks in advance!
 
Try to update /etc/exim.pl, it seems you have the old one.

Ok, thanks. I've updated it and will be checking if that error has been fixed for good.

I'm still having the other problem with the system accounts, which is generating a lot of frozen emails. For example, check out the output of a cronjob attempting to be sent to the user:

Code:
2011-03-20 11:10:01 cwd=/home/someuser 7 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
2011-03-20 11:10:01 1Q1JKT-0004YR-5j <= [email protected] U=someuser P=local S=1014 T="Cron <someuser@my> /usr/bin/php/home/someuser/public_html/responder/robot/check_deliver_br" from <[email protected]> for someuser
2011-03-20 11:10:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1Q1JKT-0004YR-5j
2011-03-20 11:10:01 1Q1JKT-0004YR-5j ** [email protected] F=<[email protected]> R=virtual_aliases: 
2011-03-20 11:10:01 cwd=/var/spool/exim 8 args: /usr/sbin/exim -odi -t -oem -oi -f <> -E1Q1JKT-0004YR-5j
2011-03-20 11:10:01 1Q1JKT-0004Ya-7D <= <> R=1Q1JKT-0004YR-5j U=mail P=local S=1955 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2011-03-20 11:10:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1Q1JKT-0004Ya-7D
2011-03-20 11:10:01 1Q1JKT-0004Ya-7D ** [email protected] F=<> R=virtual_aliases: 
2011-03-20 11:10:01 1Q1JKT-0004Ya-7D Frozen (delivery error message)
 
I In the section of log you sent I can't see any reason for the failure. Hopefully someone else may reply.

Or I could log in and fix it as a commercial service; contact me by email if you'd like to consider this option. I do guarantee my work; if I can't fix it, there's no charge.

Jeff
 
Thanks for your offering, Jeff.
I just figured out my problem.

I had my.server-fqdn.com as the primary domain for the admin user. I changed it and added my.server-fqdn.com to /etc/virtual/domains and it started working.
 
I have a similar problem, but not exactly the same.
I have diffrent errors in my log.

domainfromdirectadmin.com is domain from directadmin.conf (servername).

Primary domain for admin user is revDNS for main IP.

When i send email for system account ([email protected]) in my log files appear:

2012-04-12 17:47:01 1SIMEf-0004iu-KR <= [email protected] H=89-72-197-152.dynamic.chello.pl ([192.168.0.121]) [89.72.197.152] P=esmtpa A=plain:[email protected] S=657 [email protected] T="Testowanie" from <[email protected]> for [email protected]
2012-04-12 17:47:06 1SIMEf-0004iy-O0 <= [email protected] U=mail P=spam-scanned S=1022 [email protected] T="Testowanie" from <[email protected]> for [email protected]
2012-04-12 17:47:06 1SIMEf-0004iy-O0 ** [email protected] F=<[email protected]> R=virtual_aliases:
2012-04-12 17:47:07 1SIMEl-0004j4-0E <= <> R=1SIMEf-0004iy-O0 U=mail P=local S=1784 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2012-04-12 17:47:07 1SIMEf-0004iy-O0 Completed
2012-04-12 17:47:07 1SIMEf-0004iu-KR => flowstore <[email protected]> F=<[email protected]> R=spamcheck_director T=spamcheck S=909
2012-04-12 17:47:07 1SIMEf-0004iu-KR Completed
2012-04-12 17:47:07 1SIMEl-0004j4-0E => johny <[email protected]> F=<> R=virtual_user T=virtual_localdelivery S=1879
2012-04-12 17:47:07 1SIMEl-0004j4-0E Completed


The content of message returned to sender:

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

domainfromdirectadmin.com

Please help.

How can i diagnose/ fix this problem.

Regards
 
Check that the hostname resolves and that it has proper mx records associated with it.
 
The domain name is resolved correctly. MX settings are correct. Everything works fine when a message is sent to the virtual user.

This problem only for system users (created by adding a user to DA).

After adding user example1 with domain example1.com i can't send email for [email protected] but emails arrives correctly for virtual users (for example: [email protected])
 
Do you have a file named /etc/virtual/EXAMPLE.COM/aliases (where EXAMPLE.COM is the domain name in question)? If so, does it have an entry for USERNAME:SOMETHING where USERNAME is the username in question and SOMETHING is either a complete email address or just a reputation of the username?

If not, then that may be the problem, because mail to system usernames should be caught by the virtual_aliases_nostar router, which looks in that file.

Jeff
 
In aliases file i have the following entries:
exampleuser: exampleuser
* :: Fail:

Changed to:
exampleuser: [email protected]
Unfortunately, it did not help.

Error message:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
Unrouteable address
[email protected]
Unrouteable address

Error before the change
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]

Looks like e-mails sent to [email protected] were delivered to [email protected].

Maybe I'm wrong.
I have no ideas.
 
I noticed one thing. E-mails arrive to system administrator ([email protected]).

Users are directly under admministrator / reseller - are not assigned to another resseller account.

Maybe this is a clue?
 
1) hostname must not match any domain that is being used on the system. Example, if you have a domain called domain.com and you want to recieve mail on [email protected], you must *not* set your hostname to domain.com. We recommend using server.domain.com instead. You must make sure that you add the A record for server.domain.com so that it resolves.

http://help.directadmin.com/item.php?id=16
 
I should change the name /etc/hostname, /etc/hosts, and /usr/local/diractadmin/conf/directadmin.conf (servername)?

I have the following configuration:
hostname: example
hosts: 1.2.3.4 example.com example
directadmin.conf: servername=example.com

Should be?
hostname: example
hosts: 1.2.3.4 server.example.com example
directadmin.conf: servername=server.example.com

Thanks for help
Regards
 
Should be?
hostname: example
hosts: 1.2.3.4 server.example.com example
directadmin.conf: servername=server.example.com

I don't know what you mean with that...
... but if you want to change hostname do it either in directadmin web interface or use a script in /usr/local/directadmin/scripts/
 
Back
Top