I’ve set up NS8 as an internal mail server (Applications Mail, Roundcube) which sends and also fetches emails by/from an external mail server (at IONOS).
I use the ns8-fetchmail implementation:
And: everything works fine. Sending emails works and also fetching emails works fine. Both internally and externally.
The only thing I’m struggling with is the Roundcube filters:
I created a vacation filter, Scope=all messages, Actions=Reply with message, Message body/subject set, also “Reply sender address” set and “My e-mail addresses” set by using “Fill with all my addresses” link (to internal@example.com).
The filter works fine for emails sent internally, the (internal) sender receives the vacation email.
The filter also works fine for emails received from an external sender.
But: the email is not sent out by NS8-mail/Postfix.
This is the verbose output of Postfix if I send an email directly to an external receiver (e.g. using Roundcube compose) [auth part removed]:
[...]
MESSAGE=> smtp.ionos.de[212.227.24.206]:587: EHLO mail.ad.example.de
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-smtp.ionos.de greets ###.##.###.###
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-ENHANCEDSTATUSCODES
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-PIPELINING
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-8BITMIME
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-DELIVERBY
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-SIZE 104857600
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-LIMITS RCPTMAX=1000 MAILMAX=1000
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250-AUTH PLAIN LOGIN
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250 HELP
[...]
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 235 Authentication succeeded
MESSAGE=> smtp.ionos.de[212.227.24.206]:587: MAIL FROM:<internal@example.de> SIZE=594
MESSAGE=> smtp.ionos.de[212.227.24.206]:587: RCPT TO:<external@test.com>
MESSAGE=> smtp.ionos.de[212.227.24.206]:587: DATA
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250 Requested mail action okay, completed
MESSAGE=< smtp.ionos.de[212.227.24.206]:587: 250 OK
MESSAGE=> smtp.ionos.de[212.227.24.206]:587: QUIT
An this is the verbose output of Posfix when the vacation email is sent from Postfix [again auth part removed, everything before 235 Authenication succeeded exactly as above]:
[...]
MESSAGE=< smtp.ionos.de[212.227.24.202]:587: 235 Authentication succeeded
MESSAGE=> smtp.ionos.de[212.227.24.202]:587: MAIL FROM:<> SIZE=794 BODY=8BITMIME
MESSAGE=> smtp.ionos.de[212.227.24.202]:587: RCPT TO:<external@test.com>
MESSAGE=> smtp.ionos.de[212.227.24.202]:587: DATA
MESSAGE=< smtp.ionos.de[212.227.24.202]:587: 550-Requested action not taken: mailbox unavailable
MESSAGE=< smtp.ionos.de[212.227.24.202]:587: 550-Sender address is not allowed.
[...]
So the MAIL FROM is always empy - no matter what I specify in the filter in “Reply sender address” and “My e-mail addresses”.
Interesting: internally it works and the internal receiver gets an email with the correct sender address!
Does anyone have any idea what’s going wrong here?