Wrong sender address
Niklas Albers <[email protected]> Tue, 16 Apr 2024 15:20:16 +0000
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone,
I use getmail to fetch the emails from the internet and to forward it via s=
endmail/postfix to our Lotus Domino server, filtered with clamav and spamas=
sassin.
It is working well, despite the fact that the Domino server seems to believ=
e that the senders address is the address from the server that fetches the =
mail and send the autoresponder to this local email address.=20
I guess it is not an issue of getmail itself, but maybe someone in this lis=
t has a similar setup and can tell me what I did wrong?=20
Here is the used config:
[retriever]
type =3D SimpleIMAPSSLRetriever
server =3D=20
username =3D=20
password =3D=20
mailboxes =3D ("INBOX",)
[destination]
type =3D MDA_external
path =3D /usr/sbin/sendmail
arguments =3D ("-i", "-bm", "[email protected]")
unixfrom =3D true
[options]
verbose =3D 1
read_all =3D false
delete_after =3D 30
message_log_syslog =3D true
[filter-1]
type =3D Filter_external
path =3D /usr/bin/spamc
arguments =3D ("-s", "250000", )
[filter-2]
type =3D Filter_classifier
path =3D /usr/bin/clamdscan
arguments =3D ("--stdout", "--no-summary", "-")
exitcodes_drop =3D (1, )
/etc/postfix/main.cf
smtpd_banner =3D $myhostname ESMTP $mail_name (Ubuntu)
biff =3D no
# appending .domain is the MUA's job.
append_dot_mydomain =3D no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time =3D 4h
readme_directory =3D no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 3.6 on
# fresh installs.
compatibility_level =3D 3.6
smtputf8_enable =3D no
# TLS parameters
smtpd_tls_cert_file=3D/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=3D/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level=3Dmay
smtp_tls_CApath=3D/etc/ssl/certs
smtp_tls_security_level=3Dmay
smtp_tls_session_cache_database =3D btree:${data_directory}/smtp_scache
smtpd_relay_restrictions =3D permit_mynetworks permit_sasl_authenticated de=
fer_unauth_destination
myhostname =3D relay.mydomain.local
mydomain =3D mydomain.local
alias_maps =3D hash:/etc/aliases
alias_database =3D hash:/etc/aliases
myorigin =3D /etc/mailname
relayhost =3D relay:port
smtp_sasl_auth_enable =3D yes
smtp_sasl_password_maps =3D hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =3D noanonymous
smtp_use_tls =3D yes
mynetworks =3D 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/24
mailbox_size_limit =3D 0
recipient_delimiter =3D +
inet_interfaces =3D all
inet_protocols =3D all
transport_maps =3D hash:/etc/postfix/transport
smtp_bind_address=3Ddomino_server_ip
relay_domains =3D mydomain.local
message_size_limit =3D 102400000
smtpd_sender_restrictions =3D hash:/etc/postfix/access
/etc/mailname:
In the mail.log I can see that the local address [email protected]=
al is used in the from header. And in the summary of the autoresponder I ca=
n see that the domino server send messages to exactly this address and to n=
o one else
=20
mail.log:
Apr 16 17:06:02 openvpn spamd[511395]: spamd: connection from ::1 [::1]:381=
42 to port 783, fd 5
Apr 16 17:06:02 openvpn spamd[511395]: spamd: setuid to getmail succeeded
Apr 16 17:06:02 openvpn spamd[511395]: spamd: processing message <322e50ab5=
[email protected]> for getmail:1002
Apr 16 17:06:06 openvpn spamd[511395]: spamd: clean message (1.1/6.0) for g=
etmail:1002 in 3.6 seconds, 91574 bytes.
Apr 16 17:06:06 openvpn spamd[511395]: spamd: result: . 1 - DKIM_SIGNED,DKI=
M_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,LOT=
S_OF_MONEY,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED scantime=3D3.6,si=
ze=3D91574,user=3Dgetmail,uid=3D1002,required_score=3D6.0,rhost=3D::1,raddr=
=3D::1,rport=3D38142,mid=3D<[email protected]=
d>,autolearn=3D>
Apr 16 17:06:06 openvpn getmail: msg 149/149 (93720 bytes) msgid 1610096949=
/5216 from <[email protected]> delivered to MDA_external comm=
and sendmail (b'')
Apr 16 17:06:06 openvpn postfix/pickup[565942]: 29CE312077A: uid=3D1002 fro=
m=3D<getmail>
Apr 16 17:06:06 openvpn postfix/cleanup[566750]: 29CE312077A: message-id=3D=
<[email protected]>
Apr 16 17:06:06 openvpn postfix/qmgr[552033]: 29CE312077A: from=3D<getmail@=
relay.mydomain.local>, size=3D94392, nrcpt=3D1 (queue active)
Apr 16 17:06:06 openvpn postfix/smtp[566752]: warning: smtp_connect_addr: b=
ind 172.28.172.5: Cannot assign requested address
Apr 16 17:06:06 openvpn postfix/smtp[566752]: 29CE312077A: to=3D<name@domai=
n.com>, relay=3D172.28.172.5[172.28.172.5]:25, delay=3D0.03, delays=3D0.01/=
0.01/0/0.01, dsn=3D2.0.0, status=3Dsent (250 Message accepted for delivery)
Apr 16 17:06:06 openvpn postfix/qmgr[552033]: 29CE312077A: removed
I hope that someone will be able to give me a hint to solve this annoying i=
ssue
Regards,
Niklas