![PowerMTA allow an IP to sent email](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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
![swaks – Command line SMTP Testing Tool](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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
![Create DKIM in PowerMTA](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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
![Change SMTP port in PowerMTA](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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
![Create SMTP user in PowerMTA](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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
![How do I view what exim is doing?](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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
![How to stop SPAM with Postfix RBL](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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,
![Postfix enable Maildir](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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
![fatal: open /etc/postfix/main.cf: Permission denied](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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),
![postfix mail server](https://serverok.in/wp-content/uploads/2020/02/postfix-280x180.png)
Postfix email forward
On an Ubuntu Server, i done following to setup email forwarding. Install postfix apt -y install postfix Edit /etc/postfix/main.cf, add
![iredmail](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
iredmail
iRedMail allow you to run your own mail server easily. It use postfix mail server for mail delivery. https://www.iredmail.org/ iredmail
![iredmail increase mail attachment size](https://serverok.in/wp-content/themes/understrap-child/images/default.webp)
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,