SpamAssassin

spamassassin

SpamAssassin is a powerful open-source tool designed to filter out spam emails. Developed by the Apache Software Foundation, it helps users manage their inboxes by identifying and blocking unsolicited bulk emails. How SpamAssassin Works SpamAssassin employs various techniques to detect spam. It analyzes incoming emails using methods such as: When an email is processed, SpamAssassin … Read more

How to block a domain in Zimbra

Zimbra Mail Server

To block all emails from a specific domain in Zimbra, run the following commands as user zimbra (su – zimbra). To block a specific email address, run How to unblock If you have blocked a domain or email address and want to unblock, you can use Example Back to zimbra

How to disable Zimbra dnscache service

Zimbra Mail Server

When you are using the Zimbra mail server behind NAT with Split DNS, you need to disable dnscache service. To view all enabled/installed services, run zmprov gs `zmhostname` zimbraServiceEnabled zimbraServiceInstalled Example zimbra@mail:~$ zmprov gs `zmhostname` zimbraServiceEnabled zimbraServiceInstalled # name mail.serverok.in zimbraServiceEnabled: amavis zimbraServiceEnabled: antivirus zimbraServiceEnabled: antispam zimbraServiceEnabled: opendkim zimbraServiceEnabled: logger zimbraServiceEnabled: ldap zimbraServiceEnabled: mta zimbraServiceEnabled: … Read more

How to Zimbra Split DNS with dnsmasq

Zimbra Mail Server

When you install Zimbra on a server behind NAT, your public IP is not configured in the server, instead, it gets routed to the server using NAT gateway. Zimbra wants the IP address of your MX record present in the server. To solve this problem, we can use Split DNS. When you check the IP … Read more

Fake SMTP Server for testing

Ubuntu

When you develop a website or an application, you may need to use a fake SMTP server for debugging. Fake SMTP servers access emails, but they won’t deliver emails to the recipient’s email address. The simplest way to run a debugging SMTP server is using the following python code python3 -m smtpd -n -c DebuggingServer … Read more

How to configure Hostname in PowerMTA

By default, PowerMTA uses the server’s hostname. You can specify a custom hostname per Virtual MTA. To set a hostname for VitualMTA, add host-name entry as follows. host-name smtp1.serverok.in #domain-key default,smtp1.serverok.in,/etc/pmta/default.smtp1.serverok.in.pem max-msg-rate 100/h

iRedMail Intentional policy rejection

On an iRedMail, when receiving an email from steam, the mail server rejects the email with the error message “Recipient address rejected: Intentional policy rejection, please try again later”. Jan 31 20:31:46 mail postfix/smtpd[2042109]: Anonymous TLS connection established from smtp-03-tuk1.steampowered.com[208.64.202.39]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits) Jan 31 20:31:47 mail postfix/smtpd[2042109]: NOQUEUE: reject: RCPT from … Read more

554 5.7.1 Unknown Sender in Local Domain

When sending an email from one server to another, the email gets bounced with an error SMTP error from remote mail server after MAIL FROM: SIZE=1575: 554 5.7.1 Unknown Sender in Local Domain . The error is because both servers have the sender domain name configured. The solution is to remove the domain name from … Read more

Google Workspace DKIM authentication settings failed.

When generating DKIM in google Google Workspace I got the following error message. DKIM authentication settings failed This error happens when you have a newly activated Google Workspace account. As per Google support instructions at https://support.google.com/a/answer/174126 You need to wait 24 to 78 hours before activating DKIM. Important: After you create your Google Workspace account … Read more

.forward file

Users can create a .forward file in their home directories that is used by mail servers like exim, sendmail used to redirect email to another email account. When mail is sent to a local user, the sendmail command checks for the $HOME/.forward file. The $HOME/.forward file can contain one or more addresses or aliases. If … Read more

postfix smtp Must issue a STARTTLS command first

postfix mail server

When sending an email to a server, mail bounced with the following error message. Action: failed Status: 5.7.0 Remote-MTA: dns; mail01.riedelbau.de Diagnostic-Code: smtp; 530 5.7.0 Must issue a STARTTLS command first To fix the error, first enabled debug in postfix for the Remote-MTA, for this, edit file vi /etc/postfix/main.cf Add the following lines. You need … Read more