Enable Web Monitor UI in PowerMTA

PowerMTA comes with a Web Monitor UI, that will show you some stats about your mail server, also able to run some commands, edit PowerMTA configuration file. To enable Web Monitor UI, you need to white list your IP address in PowerMTA configuration, for this you need a fixed IP Address. vi /etc/pmta/config Find http-access … Read more

PowerMTA allow an IP to sent email

To allow a web server to send email through PowerMTA with out autentication, you need to edit PowerMTA configuration file vi /etc/pmta/config Add a source entry for the IP address that you need to allow relaying mails always-allow-relaying yes smtp-service yes Replace IP_ADDRESS with IP address of web server that you need to allow sending … Read more

swaks – Command line SMTP Testing Tool

swaks is a command line SMTP testing tool available at http://www.jetmore.org/john/code/swaks/ On Debian/Ubuntu, you can install it with the command if you just type swaks, it will ask for your email, then send a mail using MX Record to a specified email address. To send email using a specific mail server Deliver a standard test … Read more

Create DKIM in PowerMTA

To generate DKIM, run the command This will create 2 files. private.pem and public.pem Create a file and copy the content of the file private.pem in it. Public Key The file public.pem contains the public key, which you need to put in your DNS zone. public.pem file contains something that looks like the following. NOTE: … Read more

Change SMTP port in PowerMTA

To change SMTP port in PowerMTA, edit file vi /etc/pmta/config Find line starting with smtp-listener This line specify port used by PowerMTA server. You can change the power on this line. If you need PowerMTA listen to multiple ports, duplicate the line and change port, this will make PowerMTA work using both ports. smtp-listener 0/0:2525 … Read more

Create SMTP user in PowerMTA

Once you have PowerMTA installed, you need to create SMTP user. To create an SMTP user, edit file vi /etc/pmta/config Find # # password “changeme” # Add below password “SMTP_PASSWORD_HERE” source {smtpuser-auth} smtp-service yes always-allow-relaying yes require-auth true process-x-virtual-mta yes default-virtual-mta vmta-1 remove-received-headers true #add-received-headers false hide-message-source true #smtp-source-host 79.137.44.176 smtp1.serverok.in #domain-key default,smtp1.serverok.in,/etc/pmta/default.smtp1.serverok.in.pem max-msg-rate 100/h … Read more

How do I view what exim is doing?

Exim comes with a utility called “exiwhat” which will display what each instance of exim is currently involved with. exiwhat The output will look similar to this To monitor the exim log in realtime, you may use the tail command tail -f /var/log/exim_mainlog See Exim, exiwhat

How to stop SPAM with Postfix RBL

To stop spam using RBL in postfix, edit main.cf vi /etc/postfix/main.cf Add smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_invalid_hostname, reject_unauth_pipelining, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_rbl_client cbl.abuseat.org, reject_rbl_client bl.spamcop.net, reject_rbl_client sbl.spamhaus.org, reject_rbl_client zen.spamhaus.org, permit Restart postfix systemctl restart postfix See postfix

Postfix enable Maildir

To enable postfix, run postconf -e “home_mailbox = Maildir/” systemctl restart postfix You can do it by editing /etc/postfix/main.cf vi /etc/postfix/main.cf Add home_mailbox = Maildir/ 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 … 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. Aug 11 01:41:53 forums postfix/sendmail[44463]: fatal: open /etc/postfix/main.cf: Permission denied To fix this, disable selinux setenforce 0 To permanantly disable SELinux, run sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config

Postfix email forward

postfix mail server

On an Ubuntu Server, i done following to setup email forwarding. Install postfix apt -y install postfix Edit /etc/postfix/main.cf, add following vi /etc/postfix/main.cf Add virtual_mailbox_domains = YOUR-DOMAIN_HERE.com virtual_mailbox_base = /var/mail/vhosts virtual_mailbox_maps = hash:/etc/postfix/vmailbox virtual_minimum_uid = 100 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 virtual_alias_maps = hash:/etc/postfix/virtual Create Virtual mailbox vi /etc/postfix/vmailbox Add user1@YOUR-DOMAIN_HERE.com YOUR-DOMAIN_HERE.com/user1 Create alias … Read more

iredmail

iRedMail allow you to run your own mail server easily. It use postfix mail server for mail delivery. https://www.iredmail.org iredmail increase mail attachment size iRedMail Intentional policy rejection Login to iredmail admin to manage domain and email users at