Business email configuration settings

Server Configuration Settings:
Server Type Server Name Port
POP3 110
IMAP 143
POP3 with SSL 995
IMAP with SSL 993
SMTP with SSL 465


Mac Client Setup:

Mobile Device Setup:

Turn off STARTTLS in postfix – 5.7.0 must issue a STARTTLS Command

To disable TLS in the file for postfix - Change this line in the /etc/postfix/

submission inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=rmit_sasl_authenticated,reject -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unah_destination

to the following:

submission inet n - n - - smtpd -o smtpd_enforce_tls=no -o smtpd_tls_security_level=may -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=rmit_sasl_authenticated,reject -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unah_destination

and then restart postfix:
service postfix stop
service postfix start


get plesk email passwords

1>   To find password for a single email  account

root@server[#] /usr/local/psa/bin/mail --info

2> To find passwords for a single domain

root@server[#] /usr/local/psa/admin/bin/mail_auth_view | grep

3>    To find passwords for all email accounts.

root@server[#] /usr/local/psa/admin/bin/mail_auth_view



horde time off

Horde was not reading the default server time (all users were seeing UTC). I set the default in this config file:


I added this line:

$_prefs[‘timezone’][‘value’] = ‘US/Central’;

Enable Spamassassin for all existing mailboxes

In order to enable Spamassassin for all existing mailboxes you can use the following script:

#Get the list of mailboxes registered in PPA

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -sNe “select mail.mail_name, from mail left join domains on” | sed -E ‘s/[[:space:]]+/@/g’ > /tmp/mailboxes_list

#Enable spamassassin for mailboxes

while read mailbox
/usr/local/psa/bin/spamassassin -u $mailbox -status true
done < /tmp/mailboxes_list

How to display email headers

Outlook 2013, 2010 (Windows): Double-click the message to open it in a new window. Select the File tab, and then click Properties.

Outlook 2007 (Windows): Double-click the message to open it, and then in the Options group, click the dialog box launcher (small square with an arrow).

Outlook Web App (OWA): Double-click the message to open it, and then click the Message Details icon (an envelope with a small document over it).

Outlook Express, Windows Mail, or Windows Live Mail (Windows): In the message index, right-click the message, and then select Properties. Click the Details tab.

Outlook 2011 (Mac OS X): In your Inbox (or other folder), right-click or control-click the message, and then select View Source.

Thunderbird (Windows, Mac OS X): Click View, select Headers, and then choose All.

Mail (Mac OS X): With the message selected, from the View menu, select Message, and then select either All Headers or Long Headers.

Gmail: Open the message in your Gmail inbox, Click the down-arrow in the top-right corner of the message, Click the “Show original” link toward the bottom of the options box. The message will open in a separate window with the full message headers at the top.

Yahoo Mail: Open the email message in your Yahoo Mail inbox. Click the “Full Headers” link located in the lower-right corner of the email message.

change maximum email size in plesk

To change this do the following,
Login to Plesk
Under Server Management, Click “Tools & Settings”
Under Mail, Click “Mail Server Settings”
Change the “Maximum Message size” to however large you would like it to be. (for example: 25600 for 25MB limit or 30720 for 30MB limit)
Click “OK”

delete email on plesk server

One of our customers had checked the “leave message on server” box, by accident in Outlook and over 8 months accumulated over 20,000 messages (mostly spam) on the server. The mailbox was close to 1.5GB in size.

Its a Qmail mail server.

First, find out exactly how many messages are in the box and sort by the largest message

ls -Slh | – less

The | less will allow you to go page by page. To exit type :q

He requested that we delete all the emails that were over 30 days old.

Then stop the server

/etc/init.d/qmail stop

Command to remove all the old messages:

find /var/qmail/mailnames///Maildir/curr -mtime +X -print | xargs rm

replace +X with the number of days (so in our case it was +30)

the Maildir/new folder contains messages in the queue.

Depending on how many messages are in the folder the above command can take a few minutes – do not cancel until you get back to the prompt $.

/etc/init.d/qmail start

Use mutt to bounce emails to a different account

Login to the server and (as root or the account owner) run ‘mutt -f /path/to/his/mailbox’. From there you can type a capital ‘T’ (for “Tag messages matching the pattern I’m about to enter”), you will then be prompted to enter a pattern to match. Type ‘.’ (to match all strings) and enter. All messages should have an asterisk (“”) next to them.

Now type a semicolon (“;”–the semicolon tells mutt that the action you’re about to take applies to all tagged messages) and a lowercase ‘b’ (for “bounce”. Together ‘;b’ means “bounce all these messages I’ve just tagged”).

You’ll be prompted for an address to bounce the messages to. Type it in and wait a little bit for all the messages to bounce (you may be prompted by mutt to confirm you want to bounce the messages). When mutt tells you that it’s done, you can type semicolon again and then a lowercase ‘d’ (for “delete”). Type a ‘q’ to quit mutt.