Using Custom RBL’s with Exim and cPanel

cPanel 11.28 introduces an way to easily implement your own RBLs for Exim to perform lookups against.  To get started, log into WHM > Exim Configuration Editor and click on the RBLs tab, then Manage custom RBLs. From here, enter in the information for your RBL as follows: The DNS list would be the hostname…

Read more

10 Tips for Improving Email Delivery

One of the most common problems that hosting providers face is the issue of user email not being delivered to other mail servers. Not only does it annoy the end user, but it’s extremely frustrating for the server administrator to deal with since there’s not always a clear indication of why email doesn’t get delivered…

Read more

Mass Change Default (Catch All) Addresses

I wrote this nice one-liner for a user in the cPanel forums asking how to change all their current default addresses to :fail: – http://thecpaneladmin.com/files/changedefaultaddr.sh.txt Before you do anything like this, you should back up /etc/valiases. Keep in mind also that you can change the default address for new accounts in WHM > Tweak Settings.…

Read more

Fixing Permissions of Valiases

I wrote this script a while back to fix the permissions of alias files in /etc/valiases when users were having trouble creating forwarders. You can also download the script in plaintext here. #!/bin/bash # Script to fix permissions of valiases # Written by: Vanessa Vasile 5/17/10 # http://thecpaneladmin.com for domain in `cat /etc/userdomains |awk ‘{print…

Read more

Exim ACL Ratelimit Database Not Available

In your Exim logs you may see errors like this: Warning: ACL “warn” statement skipped: condition test deferred: ratelimit database not available temporarily rejected connection in ?connect? ACL: ratelimit database not available This likely means the Exim cache databases are corrupted. You can clear them by running: rm -fv /var/spool/exim/db/* Then restart Exim. The files…

Read more

Quota Errors in Exim’s Panic Log

In cPanel 11.25, you may be seeing errors like this in /var/log/exim_paniclog: 2010-04-15 12:33:27 failed to expand condition “${if exists {$home/etc/$domain/quota}{${if > {${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{0}{${if eq {${if exists {$home/mail/$domain/$local_part/maildirsize}{1}{0}}}{0}{${if > {${run {/usr/local/cpanel/bin/eximwrap GETDISKUSED $local_part $domain}}}{${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}{0}}}{true}{false}}}{${perl{checkuserquota}{$domain}{$local_part}{$message_size}{${lookup{$local_part}lsearch{$home/etc/$domain/quota}{$value}}}{$home/mail/$domain/$local_part/maildirsize}}}}}{false}}}{false}}” for virtual_user_maildir_overquota router: absolute value of integer “10485760000” is too large (overflow) To fix this, run : /scripts/reset_mail_quotas_to_sane_values –force –confirm –verbose…

Read more

Localdomains vs. Remotedomains

Have you ever dealt with a user that pointed their MX records to another server but email from their website or other users on the same server isn’t going there? This is because Exim on is configured to use files called localdomains and remotedomains, which tell Exim whether a domain’s email is hosted locally or…

Read more

Log in