Category: Mail Servers

Shell script to display recipient email from message id – postfix

Shell script to display recipient email from message id – postfix

#!/bin/bash if [ -z “$1” ];then echo “Usage:$0 ” else abuse=`echo $1| cut -f2 -d.` log_seq=0 if [ “$log_seq” -le 1 ];then log_file=/var/log/maillog else log_file=/var/log/maillog/$log_seq fi cat $log_file | grep $abuse | grep -w...

connect to 127.0.0.1[127.0.0.1]:10024: Connection refused.

connect to 127.0.0.1[127.0.0.1]:10024: Connection refused.

This is an error with amavisd . Check the proper hostname, that could be guilty.. vi /etc/amavisd.conf and check for hostname Or, vi /etc/postfix/main.cf find content_filter and comment that out ( Temp solution )...

Using remote mail server with postfix.

Using remote mail server with postfix.

Setting up Postfix to use a remote mailserver Edit /etc/postfix/main.cf and add the following # Set this to your email provider’s smtp server. relayhost = yourisp.smtp.servername:25 #or your smtp port if different smtpd_sasl_auth_enable =...

Reset Postfix Admin password

Reset Postfix Admin password

Follow the following steps to reset the postfixadmin password: 1. Get the Encrypted Version of the string that you want to set as password : dovecot -s MD5-CRYPT -p <yournewpassword> | sed ‘s/{MD5-CRYPT}//’ 2....

Email Piping with Postfix

Email Piping with Postfix

Create an alias email from postfixadmin and set go to to be  pipe_handler@hostname eg. set support@xyz.com to go to supporthandler@hostname.com Edit aliases file : #vi /etc/postfix/aliases Add the following line at the end: supporthandler:...

Install Postfix,mysql,Dovecot in Centos

Install Postfix,mysql,Dovecot in Centos

# yum install httpd mysql php php-mysql wget Set up SQL # mysql_install_db –user=mysql # mysql_secure_installation # service mysql start # mysql -p You should now be staring at an SQL prompt. The following...