How To Force Sendmail to Process the Mail Queue

Author: , August 4th, 2016

To force sendmail to process the mail queue, execute as root: sendmail -q -v The optional -v enables verbose mode to assist with troubleshooting. To display the current contents of the mail queue, execute as root: mailq

How To Fix a “Corrupted index cache file” Error in Dovecot

Author: , June 17th, 2016

Jun 17 00:02:45 inbound dovecot: IMAP(yourName): Corrupted index cache file /home/yourName/Maildir/dovecot.index.cache: invalid record size

As always, YMMV. Proceed with caution.

How To Modify the Maximum Allowed Attachment Size in Postfix

Author: , April 22nd, 2015

By default, Postfix restricts attachment size to about 10MB (10240000 bytes). You can check the current value by running the following command: postconf | grep message_size_limit To change the attachment size limit to say 50 MB, run a command like: postconf -e message_size_limit=52428800 You may find that the maximum mailbox size is lower than the […]

How To Use Regular Expressions (regex) To Forward Email In Postfix

Author: , April 7th, 2015

Create the file /etc/postfix/virtual-regexp. For example, forward all emails with a leading eric and ending with @thewyz.net to a Gmail account:

Edit the file /etc/postfix/main.cf. Add regexp:/etc/postfix/virtual-regexp to the virtual_alias_maps line. For example:

Generate the map .db file:

This example requires the files virtual and virtual.db to exist, even if they are […]

How To Empty the Email Queue in Postfix

Author: , July 11th, 2013

postsuper -d ALL

How To Delete a Single Deferred Email in Postfix

Author: , January 6th, 2013

To view the Postfix deferred queue: postqueue -p To view a specific email: postcat -q {Queue ID} To delete a specific email: postsuper -d {Queue ID} Example of viewing the deferred queue and deleting a message: # postqueue -p -Queue ID- –Size– —-Arrival Time—- -Sender/Recipient——- E15B9FC221 11627 Sun Jan 6 16:47:29 MAILER-DAEMON (connect to sight.mlorol.com[46.249.46.181]: […]

How To Validate Email Addresses in PHP

Author: , October 21st, 2012

The Email Charter

Author: , July 8th, 2011

A fantastic website dedicated to reducing the amount of time we spend dealing with email… www.emailcharter.org

How To Block/Reject Email From Or To A Specific Address Using Postfix On CentOS

Author: , June 3rd, 2011

By default, the Postfix SMTP server accepts any sender address. You block email addresses using the sender_access file:

How To Setup A Smart Relay Host Port on Sendmail

Author: , January 26th, 2011

Configure the Smart Host Search for DS in /etc/mail/sendmail.cf and edit as follows: Before: DS After: DSyour.mail.relay.yourdomain.com Configure The Port Search for Mrelay and edit as follows: Before: Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040, T=DNS/RFC822/SMTP, A=TCP $h After: Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040, T=DNS/RFC822/SMTP, A=TCP $h 2525 Add the following line appropriately […]