![]() ![]()
bind_socket = "/var/spool/postfix/var/run/rspamd/milter.sock mode=0666 owner=_rspamd" Since we are running Postfix & Rspamd on the same machine, we can use unix sockets to communicate between the two more efficiently, so add the following line to /etc/rspamd/worker-proxy.inc. ![]() Postfix communicates with Rspamd over the milter ( mail f ilter) protocol. sudo service redis restart Configuring Rspamd maxmemory 256mb maxmemory-policy volatile-ttl We will also tell Redis to remove the key closest to expiration when memory needs to be freed. SPAMSIEVE SEND ALL MESSAGES FROM A DOMAIN TO TRASH INSTALLsudo apt install rspamd redis-server -y Configuring RedisĪs we are on a tight RAM budget, let’s limit the memory that Redis can use. Rspamd uses Redis to store data, so we have to install both. Awesome, right? Let’s do it! Installing Rspamd Therefore, we can use Dovecot’s Sieve plugin to filter messages with this header into the Junk folder. In these cases, an X-Spam header will be added to the message. Mail with a high spam score will be outright rejected, but messages with a moderate spam score will still be delivered because we want to be sure we’re not rejecting legitimate mail due to false positives. The higher the score, the more likely it is to be spam. Rspamd scans messages for patterns to determine a spam score. The only step left is to handle spam mail. We can access our mailbox from email clients or in the browser via Roundcube webmail. These are stored in a MariaDB database and managed using Postfixadmin via a web browser. Our DNS records are configured properly to ensure email is delivered to & from us, and we are using virtual mailboxes so that there is no need for a local unix user for each mailbox. We now have our server running on GCP configured to send and receive email via the SMTP protocol and allow IMAP connections, while encrypting traffic with TLS. ![]() If you have not read the previous articles in this series, please follow the links above to catch up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |