How to stop SPAM with Postfix RBL

To stop spam using RBL in postfix, edit main.cf

Add

Restart postfix

See postfix […]

Read More…

Postfix enable Maildir

To enable postfix, run

You can do it by editing /etc/postfix/main.cf

Add

if home_mailbox entry already in main.cf file, then modify instead of adding a new entry. Virtual Mailbox If you are using virtual mailbox, make sure you spedify folder in your virtual_mailbox_maps. Here is what i have in main.cf

in […]

Read More…

Plesk Mail not working amavis error

When sending email from a Plesk server, i get error

This is beccause amavis service is not running. It is supposed to be run in port 10024 When i try to start amavis service, i get error

This is becuase Perl DBI module was missing. On Ubuntu server, i found the package that […]

Read More…

fatal: open /etc/postfix/main.cf: Permission denied

On a CentOS server, when sending mail from PHP scripts, mail failed to work. On checking postfix log file (/var/log/maillog), i see following error.

To fix this, disable selinux

To permanantly disable SELinux, run

[…]

Read More…

Postfix email forward

postfix mail server

On an Ubuntu Server, i done following to setup email forwarding. Install postfix

Edit /etc/postfix/main.cf, add following

Add

Create Virtual mailbox

Add

Create alias file, used for mail forwarding

Add

Wth above configuration, mail coming to [email protected]_HERE.com will get forwarded to [email protected] Email coming to [email protected]_HERE.com get delivered […]

Read More…

iredmail increase mail attachment size

Default mail attachment size in iredmail is 10 MB. To increase mail attachment size, login to server as user root, run following commands

Here 104857600 is 100 MB in bytes (100 * 1024 * 1024). Change this as required. Sending very large file using mail attachment is not recommended, it is better use file […]

Read More…

Postfix disable IPv6

To disable IPv6 on postfix mail server, edit

Find

Replace with

Restart postfix

Method 2

[…]

Read More…

Configure postfix to relay mails using Gmail

Install postfix

Create file

Add

Save and exit editor. Run

Edit postfix configuration file

Find and remove

At end of the file, add

Restart postfix

Now all mails will be forwarded using gmail. Test Email Delivery Install mailutils

On CentOS

To sent test email, run […]

Read More…

Configure Postfix to use Amazon SES

Install postfix with

Update postfix config with

Edit

Add to end of the file

In the above, replace SMTP_SERVER_NAME with your Amazon SES mail server, for example “email-smtp.us-east-1.amazonaws.com”, you can see it in your Amazon SES console. Run

Replace SMTP_SERVER_NAME, SMTP_USERNAME and SMTP_PASSWORD with your actual credentials. Now run

[…]

Read More…