Questions tagged [milter]

Milter is Sendmail's 3rd Party content management API. Use this tag for questions of design and implementation of software interacting with that API. For questions related to the operation of mail servers or plugins, refer to SuperUser or ServerFault.

From the milter Website:

Sendmail's Content Management API (milter) provides third-party programs to access mail messages as they are being processed by the Mail Transfer Agent (MTA), allowing them to examine and modify message content and meta-information. Filtering policies implemented by Milter-conformant filters may then be centrally configured and composed in an end-user's MTA configuration file.

14 questions
6
votes
0 answers

ARC Sign / Verify in Postfix

I've upgraded my Postfix mail system from opendkim to dkimpy in Debian Stretch using Backports, because I'm trying to implement ARC signing and verification. I was able to get dkimpy working in so far that DKIM verification was done on inbound mail,…
Julian
  • 167
  • 6
3
votes
1 answer

Get Queue ID during execution of Postfix before-queue (perl) milter

Problem: Trying to write a milter for Postfix to tie the presence of certain headers in an email to the destination IP address and TCP Port of the outbound relay host. Following the Postfix milter guide it seems I need to implement a before-queue…
David-SkyMesh
  • 5,041
  • 1
  • 31
  • 38
1
vote
1 answer

How to use mail filter context data?

I am trying to write a mail filter in Rust using the milter crate. I built the example on a Linux VM and it all works fine. However, the example is using u32 as the type of context injected into their handlers, a quite simple example. I instead need…
Luke Briner
  • 708
  • 4
  • 21
1
vote
0 answers

Cannot send email to gmail account from postfix

I am having problem in sending emails in gmail account. I see them in the queue but they are not proccessing. Looking at the logs I noticed that when I try to send to gmail i receive the following: Dec 5 12:55:36 lvps81-41-130-77…
0
votes
0 answers

Postfix: Python Milter not able to change email header

I have some servers that create automated emails which all pass through a Postfix MTA. The software that generates the email does not strictly follow RFCs, and sometimes generates emails with duplicate message-ID headers. The software cannot be…
btongeorge
  • 421
  • 2
  • 12
  • 23
0
votes
1 answer

How can Postfix filter email (DKIM) without keeping the message in memory and without writing it to disc twice?

I need to DKIM sign possibly huge emails (up to 150MB). I’m running Postfix and so far want to keep that MTA. Conceptually DKIM needs to go over the email twice: once to calculate and sign the checksum and once to write it out with the result of the…
Robert Siemer
  • 32,405
  • 11
  • 84
  • 94
0
votes
1 answer

Don't want that Postfix+Dovecot reject "recipient not found" mails

I'm writing a Milter for Postfix, that handles incoming messages in a server (Postfix+Dovecot) with virtual domains and users. Communication beetweend Postfix and the Milter are done with the Sendmail Milter Protocol V 2 I really need that Dovecot…
0
votes
1 answer

In Sendmail Jilter, what does various Abbreviations mentioned in JilterConstants mean

In Sendmail Jilter, what does various Abbreviations mentioned in JilterConstants mean ? like: SMFIC_HEADER, SMFIR_CHGHEADER etc. Official documentation doesn't have any details for class…
Bharat Pahalwani
  • 1,404
  • 3
  • 25
  • 40
0
votes
0 answers

E1101: Module 'Milter' has no 'CONTINUE' member (no-member)

I've decided to improve the quality of my code by running some known working code through pylint. In particular I have a milter using pymilter. Here is the really simple code that I'm running: #!/usr/bin/python3 "Test Milter" import Milter #…
Bintz
  • 784
  • 2
  • 9
  • 22
0
votes
1 answer

Is it possible for using imap to modify the message of email?

is it possible to add a pop-up message on the received email? I have searched IMAP but it can only fetch the email, view the email content. and I have considered milter, but it only uses for filtering. My idea is when there is a URL in the context…
M. THY
  • 19
  • 3
0
votes
1 answer

postfix: timing of client responses in a milter and in after-queue processing?

I'm currently using postfix-2.11.3, and I am doing a lot of message processing through a milter. This processing takes place before the client is notified that the message is accepted, and it sometimes involves enough work that it delays the…
HippoMan
  • 2,119
  • 2
  • 25
  • 48
0
votes
1 answer

postfix: Milter being notified that a client authentication has failed?

Is there any way that a milter under postfix can be told that a given client connection attempt failed specifically because of an authentication error? Sometimes, my email server gets blasted with repeated SMTP authentication attempts from the same…
HippoMan
  • 2,119
  • 2
  • 25
  • 48
0
votes
1 answer

Does a milter callback really need to be re-entrant?

I need to develop a milter for Sendmail and have thought a long time about which language / framework I should use. Finally, I have decided to do it in plain C directly using the milter API. I have studied the milter API documentation and think I…
Binarus
  • 4,005
  • 3
  • 25
  • 41
-1
votes
1 answer

Write data in unknown encoding

Is it possible write data to a file in an unknown encoding? I cannot decode email headers, for example message-id, because if I use handler ignore or a replace https://docs.python.org/3/library/codecs.html#error-handlers non-RFC header will be…