Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Milter only working one time #186

Open
pbkwee opened this issue Feb 6, 2025 · 0 comments
Open

Milter only working one time #186

pbkwee opened this issue Feb 6, 2025 · 0 comments

Comments

@pbkwee
Copy link

pbkwee commented Feb 6, 2025

Hi.

I build 2.0.10 from src on debian 12. I set it up as a milter on postfix. The first email it receives it makes the appropriate SRS return path header change. Subsequent attempts result in no return path changes and a "PostSRSd: private data not NULL" message.

Using the canonical settings and it appears to be working as expected (multiple emails can be sent and return paths are each set as expected).

Any suggestions how I can troubleshoot this?


smtpd_milters = inet:127.0.0.1:9997, unix:/run/opendkim/opendkim.sock, unix:/run/opendmarc/opendmarc.sock, unix:/run/spamass/spamass-milter.sock, unix:/run/clamav/clamav-milter.ctl

# cat /usr/local/etc/postsrsd.conf  | egrep -v '^#|^$'
domains = {"tempmaildomain.example.com"}
srs-domain = srs.example.com
socketmap = inet:127.0.0.1:10003
milter = inet:127.0.0.1:9997
original-envelope = embedded
secrets-file = "/usr/local/etc/postsrsd.secret"
separator = "="
hash-length = 4
hash-minimum = 4
always-rewrite = off
unprivileged-user = "nobody"
chroot-dir = "/usr/local/var/lib/postsrsd"
syslog = on
debug = on

# postsrsd 
postsrsd: debug: <[email protected]> not reversed: Not an SRS address.
postsrsd: <[email protected]> forwarded as <[email protected]>

/var/log/mail.info:

2025-02-06T20:27:36.071339+00:00 host-10020421 postsrsd[1946]: <[email protected]> not reversed: Not an SRS address.
2025-02-06T20:27:36.071457+00:00 host-10020421 postsrsd[1946]: <[email protected]> forwarded as <[email protected]>
2025-02-06T20:27:39.846922+00:00 host-10020421 postsrsd[1946]: PostSRSd: private data not NULL
2025-02-06T20:27:51.986647+00:00 host-10020421 postsrsd[1946]: PostSRSd: private data not NULL

Also:
2025-02-06T20:46:06.059156+00:00 host-10020421 postfix/smtpd[2949]: warning: milter inet:127.0.0.1:9997: can't read SMFIC_OPTNEG reply packet header: Connection timed out
2025-02-06T20:46:06.059424+00:00 host-10020421 postfix/smtpd[2949]: warning: milter inet:127.0.0.1:9997: read error in initial handshake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant