Questions tagged [milter]

Milter is set of API that provides an interface for third-party software to validate and modify messages as they pass through the mail transport system.

Milter was portmanteau for mail filter. Originally milter was written for . In 2006, 2.3.0 officially support milter, although there are little limitations of Postfix milter implementations.

A milter-capable MTA will notifies the milter application about each phase of the delivery of a message. At each phase of the SMTP session, the milter application is given data about the arriving message and then has an opportunity to terminate acceptance of the message early when appropriate.

A milter-capable MTA can connect to multiple filters in parallel that serve specific purposes such as anti-virus, anti-spam, message authentication, flow regulation, etc. The filters also can take special action on the message: add or remove recipients in the envelope; alter the body prior to delivery; add, change or remove header fields in the message, etc.

Website www.milter.org provides catalog of open-source and commercial milter. This website also provides the documentation about milter API for developer.

References:

43 questions
1
vote
1 answer

Can't get Sendmail to connect to MIMEDefang

I would like to set a milter using MIMEDefang on Ubuntu 16.04. I have an existing server using Sendmail 8.15.2-3. I installed MIMEDefang 2.78-1ubuntu1.1 (default package from apt). I configured my filter as I wanted and the service seems to be…
Fr33dan
  • 133
  • 1
  • 8
1
vote
1 answer

Can postfix queue message till milter comes back?

I am using postfix and a before queue milter (written in java, running as a seperate process). When milter crashes or not available for a brief period, can postfix be configured to queue till milter comes back online? The email client should get a…
1
vote
1 answer

openDKIM breaks email forwarding

After moving our server over to Postfix, I have decided to implement DKIM using OpenDKIM. I have been successfully able to install and run this, but while it is enabled as a milter, all mail forwarding on the server becomes broken. For example, if I…
Joe
  • 13
  • 4
1
vote
1 answer

Configuration of ClamAV on Fedora Core 21 with Postfix

I was unable to find any help anywhere on installing Clamav on a modern Fedora system. All the advice out there is old and doesn't apply - so far as I found anyway. And, it's not enough straight-forward that I know what to do! The most important…
Richard T
  • 1,206
  • 12
  • 29
1
vote
1 answer

opendkim public key not available

I'm having problems with my mail server sending or reciving mails from/to hotmail can anyone explain for newbies what all this errors on postfix log/gmail header/website dkim validator are telling me and give me a clue what should i do next? Centos…
MikZuit
  • 391
  • 2
  • 7
  • 16
1
vote
1 answer

Postfix does not trigger my before-queue milter script

I can't get the milter triggered when a new email is accepted by Postfix before-queue. Obviously, I don't do something properly but I can't figure out what. I have the following setup: Ubuntu Server, Postfix 2.11. The Postfix service is working and…
user151851
  • 1,863
  • 2
  • 12
  • 10
1
vote
1 answer

Why does all email, including email that is rejected, get processed by the milter?

I've configured postfix to use a milter. Unfortunately, it seems that all email goes through the milter, even email that is rejected with "User unknown" messages or email rejected by the check_policy_service setting in smtpd_check_recipients. This…
1
vote
0 answers

What are my server-side options for scanning email attachments for words and phrases?

I currently run an email system with Postfix/Dovecot and I am looking for a way to scan the contents of attachments (mainly doc(x) and pdf) for certain words and bounce the email back to the user with a message in case something has been found.…
Mark
  • 11
  • 1
1
vote
1 answer

postfix: conditionally ignoring certain "User unknown in virtual mailbox table" errors when using a milter

Note: I originally posted this question in Unix/Linux StackExchange, but after a week, there have been no responses. I see more postfix-related discussion here, and so I've voted to close the StackExchange version of my question, and I've moved my…
HippoMan
  • 222
  • 1
  • 10
1
vote
1 answer

spamass-milter[1403]: Could not retrieve sendmail macro "i"!. Please add it to confMILTER_MACROS_ENVFROM for better spamassassin results

I am running an Ubuntu 20.04 based LEMP server on a Raspberry Pi. Installed on it is postfix/dovecot/amavis/spamassassin. When I look at my mail.err logs by running the following command: cat /var/log/mail.err it returns the following…
DanRan
  • 73
  • 1
  • 3
  • 22
1
vote
1 answer

Make Postfix add "Authentication-Results" header to locally originated mail destined to local domain?

If I write via sendmail or SubmissionS client a mail to my virtual account (my domain is example.org), the mail I receive looks like this: Return-Path: Delivered-To: user@example.org Received: from example.org by hostname with…
Polizi8
  • 25
  • 1
  • 6
1
vote
1 answer

Postfix refuses to connect to rspamd on CentOS

I have my mailserver setup configured based on this guideline (German), with the possibly important detail that I use CentOS 8 as a base OS instead of Debian. Everything works fine, except that I cannot manage to integrate rspamd into my setup. If I…
dlkmp
  • 11
  • 1
0
votes
1 answer

Opendkim fails to start on CentOS 7 (connect to Milter service inet:localhost:8891: Connection refused)

I've got issues with OpenDKIM not starting on my CentOS 7 (with Postfix) server since an update for OpenDKIM crashed a while ago. I've tried the following: service opendkim start Then it says: Job for opendkim.service failed because the control…
Liv
  • 101
  • 1
  • 3
0
votes
1 answer

Postfix rejecting mail when milter is down - is it possible to let the emails throu anyway?

I am running a emailserver with two milters: OpenDMARC and OpenARC - both has worked very well and has been stable. I have defined both milters like this: smtpd_milters = inet:localhost:8893,inet:localhost:8991 non_smtpd_milters =…
Orphans
  • 1,396
  • 2
  • 18
  • 30
0
votes
1 answer

Postfix milter - Is there a transport security?

Currently I am running a before-queue-milter script (written in java) and I see the postfix is communicating to milter in plain text via a socket connection. Is there a way to protect this by some transport security?