When sending email from postfix mail sever that use mailgun for relaying mails, i get error Jan 4 03:16:06 serverok-vm postfix/qmgr[22652]: 795731A8D: from=, size=820, nrcpt=1 (queue active) Jan 4 03:16:06 serverok-vm postfix/smtp[24050]: warning: SASL authentication failure: No worthy mechs found Jan 4 03:16:06 serverok-vm postfix/smtp[24050]: 795731A8D: SASL authentication failed; cannot authenticate to server smtp.mailgun.org[34.237.7.101]: no […]
Transnational Email Providers
Amazon Simple Email Service $0.10 per 1,000 emails sent. 65K free emails per month if you are hosted on EC2. Disadvantage: You can only sent from @your-domain.extn, if you have a SAS application and need to sent from some other email address, you need domain added to SES and verified. https://aws.amazon.com/ses/pricing/ MailJet Free account allow […]
MailEnable Delete old logs
Create a new file with file name del_smtp_log.bat in C:\Program Files\Mail Enable\Logging with following commands.
1 2 3 |
net stop mesmtpcs del SMTP\*.log net start mesmtpcs |
See MailEnable […]
Check spam mails in MailEnable
1 2 |
cd C:\Program Files\Mail Enable\Logging\SMTP findstr "Authenticated" LOG_FILE_NAME > auth.txt |
Now check each sender IP in auth.txt file, check whois of IP address see, if any spamer.
1 2 |
cd C:\Program Files\Mail Enable\Logging\SMTP findstr "AUTH" ex* > auth.txt |
1 2 |
cd C:\Program Files\Mail Enable\Logging\SMTP findstr "AUTH" ex* | findstr "Authenticated" > auth.txt |
See MailEnable […]
MailEnable delete old mails
MailEnable provides a command line utility to purge messages from the MailEnable message store. The utility will purge all postmaster, badmail, Inbox or Deleted Items messages that exceed the specified age. It can be scheduled as a batch job using the Windows Task Scheduler if needed.
1 |
Syntax: MEPURGE {POSTOFFICE+ALL} {DAYS} {SWITCHES} [UNREAD] |
Parameters POSTOFFICE|ALL = Apply to a single postoffice […]
MailEnable
Install MailEnable Mail Server MailEnable delete old mails Check spam mails in MailEnable MailEnable Delete old logs […]
Install MailEnable Mail Server
Download mailenable Standard edition from http://www.mailenable.com/mailenablestandard.exe
1 2 3 4 5 6 |
Mailenable username: Postmater Password : Gkl1234rt22 Domain name : server30.hosthat.com DNS host : default SMTP Prot : 25 |
Configuration Go to
1 |
MailEnable > Connector> SMTP > Properties |
General Tab
1 2 3 |
Local domain : server30.hosthat.com Default mail domain : server30.hosthat.com email id for sending notification : POSTMASTER@server30.hosthat.com |
Inbound Relay
1 2 3 4 |
check Enable Mail relay Authenticated Sender Prevelaged IP ranges Click Prevelaged Ips and add all server ips |
Check Denied relay ip
1 |
Enable DNS blacklisting >Select Smamcop and click applay |
Security Check following
1 2 3 4 5 6 |
Reject mail if sender is invalid domain name authentical sender must use valid user address Require PTR DNS entry for unauthenticated users Disable all catchall Use an alternative Welcome message enter HostOnNet.com S30 Mail Server |
Restrict number of recipents per emails 10 Delivery Check Never send delay notification mail restart SMTP Check open relay at http://www.abuse.net/relay.html See MailEnable […]
install postfix from source code
Requirements
1 |
yum -y install db4 db4-devel |
Create user
1 2 3 |
groupadd postfix -g 1000 useradd postfix -u 1000 -g 1000 groupadd postdrop |
Download and Install Go to http://www.postfix.org/download.html and download latest version of postfix.
1 2 3 4 |
cd /usr/local/src wget http://mirrors.rootservices.net/postfix/official/postfix-2.6.2.tar.gz tar -zxvf postfix-2.6.2.tar.gz cd postfix-2.6.2 |
COMPILING
1 2 3 4 |
make tidy make -f Makefile.init makefiles make make install |
COMPILING WITH MYSQL SUPPORT
1 2 3 4 |
make tidy make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm' make make install |
Now it ask many questions, just enter for every questions. See [[postfix make install questions]]
1 2 3 4 5 6 7 8 9 10 11 |
Warning: you still need to edit myorigin/mydestination/mynetworks parameter settings in /etc/postfix/main.cf See also http://www.postfix.org/faq.html for information about dialup sites or about sites inside a firewalled network. BTW: Check your /etc/aliases file and be sure to set up aliases that send mail for root and postmaster to a real person, then run /usr/bin/newaliases. |
PRESS ENTER FOR ALL error while loading shared libraries: libmysqlclient.so.16
1 2 3 |
[root@linux postfix-2.5.5]# find / -name 'mysql_version.h' /usr/include/mysql/mysql_version.h [root@linux postfix-2.5.5]# |
1 2 3 |
[root@linux postfix-2.5.5]# find / -name 'libmysqlclient.so' /usr/lib/mysql/libmysqlclient.so [root@linux postfix-2.5.5]# |
Show mails […]