Starting exim: /bin/bash: line 1: 14341 File size limit exceeded/usr/sbin/exim -bd -q1h – exim can’t start

Problem :

ga bisa ngirim mail lewat mail client / webmail ( squrle/rouncube) >> smtp problem / not connected

kalo di server : ketika restart service exim muncul nya

Starting exim: /bin/bash: line 1: 14341 File size limit exceeded/usr/sbin/exim -bd -q1h – exim can’t start

kalo ngecek isi queue ( exim -bpc)

File size limit exceeded (core dumped

SOlusi :

biasanya file exim_mainlog nya kegedean ( limited) >> hapus saja

trus coba restart exim nya

Exim defer (-53): retry time not reached for any host

From time to time you may notice that some addresses give a defer error: retry time not reached for any host.

1Ruz3Y-0005TQ-Ek == email@domain.com R=dnslookup T=remote_smtp defer (-53): retry time not reached for any host

And Problem remain even if you try send an email from multiple servers all with different IP addresses and ranges.

First of all, make sure your domain is not blacklisted by any of the RBL’s…

If the e-mail server IP is not in blacklist, this error message means that all hosts to which the message could be sent have been failing for so long that the end of the retry period (typically 4 or 5 days) has been reached. In such case, exim still computes a next time to retry, but any messages that arrive in the meantime are bounced straight away.

So, you need to find out what smtp server is used to manage address.com’s email. To do this — use the host command or more advanced dig, whatever you like best. This command should be issued on your mail server:


# host yahoo.com
yahoo.com has address 206.190.36.45
yahoo.com has address 98.138.253.109
yahoo.com has address 98.139.183.24
yahoo.com mail is handled by 1 mta7.am0.yahoodns.net.
yahoo.com mail is handled by 1 mta6.am0.yahoodns.net.
yahoo.com mail is handled by 1 mta5.am0.yahoodns.net.

Then make sure that remote smtp server is accepting connections on 25/tcp and is operating without any unpredictable errors.


# telnet mta7.am0.yahoodns.net 25
Trying 98.138.112.34...
Connected to mta7.am0.yahoodns.net (98.138.112.34).
Escape character is '^]'.
220 mta1240.mail.ne1.yahoo.com ESMTP YSmtpProxy service ready

Next step is to tidy up exim retry database in case your exim databases are corrupt:


# /usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null
# /usr/sbin/exim_tidydb -t 1d /var/spool/exim reject > /dev/null
# /usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp > /dev/null

In my case, after some digging, I found, that one possible reason for this error is recipient mail server IP address being blocked in exim database. So now we are sure that the Ip address or recipient mail server is blocked in the exim database.

Now to release the IP you should:

1. Take backup of “/var/spool/exim/db/” directory if we can revert. in case if there is another problem arise.

2. Stop exim service using following command:

# /etc/init.d/exim stop

3. Now delet the ratelimit & retry files:

# rm -rf ratelimit
# rm -rf retry

OR

# rm -rf *

4. Start the exim service:

# /etc/init.d/exim start

As the service is restarted, it will rebuild the Exim Database.

Unrouteable address on exim in cPanel server

On a cPanel server we were facing problems while sending mails it was giving the below errors:

2013-01-29 15:58:22 1LSYLW-0005Is-8d <= root@hostname.com U=root P=local S=377
2013-01-29 15:58:22 1LSYLW-0005Is-8d ** user@domain.com: Unrouteable address

The solution for this issue is find if the domains entry is present within /etc/localdomains , /etc/userdomains and /etc/trueuserdomains . If the domains entry is missing in any of the file – do add the domain within the files.

Also, make sure that the domains entry is in the /etc/valiases/domain.com , if this file is blank do add the line:

*: username

Then, you can test the mail from your server using the command line:

root# mail -s "Test Mail" user@domain.com

Here are the exim logs, which says the delivery is completed.

2010-01-29 16:06:39 1LSYTX-0007Jo-6D => user <user@domain.com> R=virtual_user T=virtual_userdelivery
2010-01-29 16:06:39 1LSYTX-0007Jo-6D Completed

How to check Exim configuration and messages in mail queue – cPanel server

First you must login to ssh server, then you can try this command :

You may wonder how to check exim configuration in one command on a cPanel server, so here is the command to check exim configurations:

root@server# exim -bP

Now, you need to check the summary of messages in the mail queue it contains (Count, Volume, Oldest, Newest, and Domain) here is the command:

root@server# exim -bp | exiqsumm

If you want to print message ID of all the messages in the mail queue, here is the command:

root@server# exiqgrep –i

Exim commands for cPanel server

Here are some exim commands which may help system administrators.

First , you must login to ssh server

To check how many emails are in the exim mail queue the command is:

exim –bpc

Check frozen emails in the mail queue by the command:

exim –bp | grep frozen

Number of frozen emails in the mail queue:

exim –bp | grep frozen | wc –l

Delete frozen emails from the exim mail queue:

exim -bp | awk ‘$6 == “frozen” {print $3}’ | xargs exim –Mrm