Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2020-04-20 12:27:57

  q0o - Nowy użytkownik

q0o
Nowy użytkownik
Zarejestrowany: 2020-04-20

Postfix i fetchmail - problem 501 z dostarczaniem niektórych e-maili

Witam,
Jako, że z e-maili korzystam na co dzień, postanowiłem zobaczyć, jak to wygląda od tej drugiej strony i uczyć się stopniowo zarządzania serwerem pocztowym.
Aby możliwie zminimalizować ryzyko pozostania "na dzień dobry" open relayem postanowiłem na "pierwszym etapie" skorzystać z gotowego rozwiązania, dostępnego w ramach kontenera docker "tvial/docker-mailserver", z nadzieją, że on też pozwoli mi zetknąć się z problemami, które będę rozwiązywał, przy okazji ucząc się.

Ostatnio zająłem się kwestią fetchmaila, aby móc pobierać wiadomości z zewnętrznych skrzynek pocztowych na jedno konto, zlokalizowane na "moim" serwerze. Natknąłem się jednak na problem z pobieraniem niektórych e-maili, pochodzących z raczej szeroko znanych usług (więc - jak przypuszczam - z działających prawidłowo serwerów pocztowych).

Przy dostarczaniu wspomnianych wiadomości z fetchmaila do postfixa zwracany jest błąd "501 5.1.7 Bad sender address syntax".

Moje pytania są następujące:
1. Czy błąd jest w konfiguracji po mojej stronie, czy też owe serwery "serwują" niekoniecznie zgodne ze specyfikacją nagłówki?
2. I czy stosownym rozwiązaniem (obejściem?) problemu byłoby utworzenie własnej reguły, "wycinającej" ową spację z nagłówka przy użyciu odpowiedniego wpisu w "smtpd_command_filter"? Czy może to tylko kwestia zmiany opcji w pliku konfiguracyjnym?

Analizując nagłówki tego typu wiadomości powtarza jedna kwestia - posiadają one po nowej linii dodatkową spację w wartości nagłówka "Return-Path" (CR LF spacja, ciąg "#015#012 "). Przykłady:

Kod:

X-WP-SR: SG/dmIZT7xMhG4BwvBi1m2Wo7OONqbB31swNmZDfq5mVgREFPyWh/rseQeN/iw==
Return-Path: <01000171921904f1-da290227-d7f8-4d98-98ba-ef13f2f0ffcd-000000@c
 omms-ses-from.olx.pl>
Delivered-To: <username+olx@o2.pl>
...

Kod:

Return-Path: <0100017192bd8a29-d843cc56-0a5b-4d71-806b-dc568b660069-000000@m
 ail.crowdin.com>
...

Plik używany przez fetchmaila (próbowałem też bez "no rewrite" i przy użyciu protokołu POP3, ale to raczej bez znaczenia):

Kod:

set postmaster "postmaster"
set nobouncemail
set no spambounce
set properties ""
set syslog
poll poczta.o2.pl with proto IMAP
  user 'username@o2.pl' there with password 'password' is 'userlocal@mojadomena.pl' here keep ssl no rewrite

Polecenie uruchomienia fetchmaila (próbowałem też bez "--bad-header accept" i "-n"):

Kod:

fetchmail -f fm -i fetchmail-2.pid -vvv --bad-header accept -n

Dokładniejszy log z fetchmaila znajduje się poniżej:

Kod:

Apr 20 10:51:57 mail fetchmail[4188]: Old UID list from poczta.o2.pl: <empty>
Apr 20 10:51:57 mail fetchmail[4188]: Scratch list of UIDs: <empty>
Apr 20 10:51:57 mail fetchmail[4188]: 6.3.26 querying poczta.o2.pl (protocol IMAP) at Mon Apr 20 10:51:57 2020: poll started
Apr 20 10:51:57 mail fetchmail[4188]: Trying to connect to 193.17.41.99/993...connected.
Apr 20 10:51:57 mail fetchmail[4188]: Certificate chain, from root to peer, starting at depth 2:
Apr 20 10:51:57 mail fetchmail[4188]: Issuer Organization: DigiCert Inc
Apr 20 10:51:57 mail fetchmail[4188]: Issuer CommonName: DigiCert Global Root CA
Apr 20 10:51:57 mail fetchmail[4188]: Subject CommonName: DigiCert Global Root CA
Apr 20 10:51:57 mail fetchmail[4188]: Certificate at depth 1:
Apr 20 10:51:57 mail fetchmail[4188]: Issuer Organization: DigiCert Inc
Apr 20 10:51:57 mail fetchmail[4188]: Issuer CommonName: DigiCert Global Root CA
Apr 20 10:51:57 mail fetchmail[4188]: Subject CommonName: RapidSSL RSA CA 2018
Apr 20 10:51:57 mail fetchmail[4188]: Server certificate:
Apr 20 10:51:57 mail fetchmail[4188]: Issuer Organization: DigiCert Inc
Apr 20 10:51:57 mail fetchmail[4188]: Issuer CommonName: RapidSSL RSA CA 2018
Apr 20 10:51:57 mail fetchmail[4188]: Subject CommonName: *.o2.pl
Apr 20 10:51:57 mail fetchmail[4188]: Subject Alternative Name: *.o2.pl
Apr 20 10:51:57 mail fetchmail[4188]: Subject Alternative Name: o2.pl
Apr 20 10:51:57 mail fetchmail[4188]: poczta.o2.pl key fingerprint: BA:B2:DA:EB:3C:72:BD:B5:3A:C2:F3:86:72:44:AC:12
Apr 20 10:51:57 mail fetchmail[4188]: SSL/TLS: using protocol TLSv1.2, cipher ECDHE-RSA-AES256-GCM-SHA384, 256/256 secret/processed bits
Apr 20 10:51:57 mail fetchmail[4188]: IMAP< * OK IMAP4 ready
Apr 20 10:51:57 mail fetchmail[4188]: IMAP> A0001 CAPABILITY
Apr 20 10:51:57 mail fetchmail[4188]: IMAP< * CAPABILITY IMAP4rev1 UIDPLUS LITERAL+ CHILDREN NAMESPACE XLIST ID IDLE MOVE XAOL-MOVE AUTH=PLAIN
Apr 20 10:51:57 mail fetchmail[4188]: IMAP< A0001 OK completed
Apr 20 10:51:57 mail fetchmail[4188]: Protocol identified as IMAP4 rev 1
Apr 20 10:51:57 mail fetchmail[4188]: GSSAPI error gss_inquire_cred: Unspecified GSS failure.  Minor code may provide more information
Apr 20 10:51:57 mail fetchmail[4188]: GSSAPI error gss_inquire_cred: No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_0)
Apr 20 10:51:57 mail fetchmail[4188]: No suitable GSSAPI credentials found. Skipping GSSAPI authentication.
Apr 20 10:51:57 mail fetchmail[4188]: If you want to use GSSAPI, you need credentials first, possibly from kinit.
Apr 20 10:51:57 mail fetchmail[4188]: IMAP> A0002 LOGIN "username@o2.pl" *
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< A0002 OK Login completed
Apr 20 10:52:05 mail fetchmail[4188]: selecting or re-polling default folder
Apr 20 10:52:05 mail fetchmail[4188]: IMAP> A0003 SELECT "INBOX"
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * 1 EXISTS
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * 0 RECENT
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * OK [UNSEEN 1] UIDs valid
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * OK [UIDVALIDITY 1466089141] UIDs valid
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * OK [UIDNEXT 20915] Predicted next UID
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)]
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * OK [NOMODSEQ] Sorry, this mailbox format doesn't support modsequences
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< A0003 OK [READ-WRITE] SELECT completed
Apr 20 10:52:05 mail fetchmail[4188]: 1 message waiting after first poll
Apr 20 10:52:05 mail fetchmail[4188]: IMAP> A0004 SEARCH UNSEEN UNDELETED
Apr 20 10:52:05 mail fetchmail[4188]: IMAP< * SEARCH 1
Apr 20 10:52:05 mail fetchmail[4188]: 1 is unseen
Apr 20 10:52:06 mail fetchmail[4188]: IMAP< A0004 OK Search completed
Apr 20 10:52:06 mail fetchmail[4188]: 1 is first unseen
Apr 20 10:52:06 mail fetchmail[4188]: 1 message for username@o2.pl at poczta.o2.pl.
Apr 20 10:52:06 mail fetchmail[4188]: IMAP> A0005 FETCH 1 RFC822.SIZE
Apr 20 10:52:06 mail fetchmail[4188]: IMAP< * 1 FETCH (RFC822.SIZE 18225)
Apr 20 10:52:06 mail fetchmail[4188]: IMAP< A0005 OK Fetch completed
Apr 20 10:52:06 mail fetchmail[4188]: IMAP> A0006 FETCH 1 RFC822.HEADER
Apr 20 10:52:06 mail fetchmail[4188]: IMAP< * 1 FETCH (RFC822.HEADER {2350}
Apr 20 10:52:06 mail fetchmail[4188]: reading message username@o2.pl@poczta.o2.pl:1 of 1 (2350 header octets)Trying to connect to 127.0.0.1/25...connected.
Apr 20 10:52:06 mail postfix/postscreen[4223]: CONNECT from [127.0.0.1]:59986 to [127.0.0.1]:25
Apr 20 10:52:06 mail postfix/postscreen[4223]: WHITELISTED [127.0.0.1]:59986
Apr 20 10:52:06 mail postfix/smtpd[4224]: connect from localhost[127.0.0.1]
Apr 20 10:52:06 mail opendmarc[246]: ignoring connection from localhost
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 220 mail.mojadomena.pl ESMTP Postfix (Debian)
Apr 20 10:52:06 mail fetchmail[4188]: SMTP> EHLO mail.mojadomena.pl
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-mail.mojadomena.pl
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-PIPELINING
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-SIZE 102400000
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-ETRN
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-STARTTLS
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-AUTH PLAIN LOGIN
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-AUTH=PLAIN LOGIN
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-ENHANCEDSTATUSCODES
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250-8BITMIME
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250 DSN
Apr 20 10:52:06 mail fetchmail[4188]: forwarding to localhost
Apr 20 10:52:06 mail fetchmail[4188]: SMTP> MAIL FROM:<01000171921989b1-0e61d617-008b-4173-82c8-b58497bc261e-000000@c#015#012 omms-ses-from.olx.pl> SIZE=18225
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 501 5.1.7 Bad sender address syntax
Apr 20 10:52:06 mail fetchmail[4188]: SMTP error: 501 5.1.7 Bad sender address syntax
Apr 20 10:52:06 mail fetchmail[4188]: SMTP> RSET
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 502 5.5.2 Error: command not recognized
Apr 20 10:52:06 mail fetchmail[4188]: IMAP< )
Apr 20 10:52:06 mail fetchmail[4188]: IMAP< A0006 OK Fetch completed
Apr 20 10:52:06 mail fetchmail[4188]: message username@o2.pl@poczta.o2.pl:1 was not the expected length (2350 actual != 18225 expected)
Apr 20 10:52:06 mail fetchmail[4188]:  not flushed
Apr 20 10:52:06 mail fetchmail[4188]: IMAP> A0007 LOGOUT
Apr 20 10:52:06 mail fetchmail[4188]: IMAP< A0007 BYE IMAP4rev1 Server logging out
Apr 20 10:52:06 mail fetchmail[4188]: SMTP> QUIT
Apr 20 10:52:06 mail fetchmail[4188]: SMTP< 250 2.0.0 Ok
Apr 20 10:52:06 mail fetchmail[4188]: 6.3.26 querying poczta.o2.pl (protocol IMAP) at Mon Apr 20 10:52:06 2020: poll completed
Apr 20 10:52:06 mail fetchmail[4188]: Merged UID list from poczta.o2.pl: <empty>
Apr 20 10:52:06 mail fetchmail[4188]: Query status=4 (PROTOCOL)
Apr 20 10:52:06 mail fetchmail[4188]: normal termination, status 4
Apr 20 10:52:06 mail postfix/smtpd[4224]: disconnect from localhost[127.0.0.1] ehlo=1 mail=0/1 rset=1 quit=1 unknown=0/1 commands=3/5

Konfiguracja postfixa:
main.cf:

Kod:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian)
biff = no
append_dot_mydomain = no
readme_directory = no

# Basic configuration
# myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::1]/128 [fe80::]/64 172.16.0.0/12 172.16.0.0/12
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

# TLS parameters
smtpd_tls_cert_file=/etc/postfix/ssl/cert
smtpd_tls_key_file=/etc/postfix/ssl/key
#smtpd_tls_CAfile=
#smtp_tls_CAfile=
smtpd_tls_security_level = may
smtpd_use_tls=yes
smtpd_tls_loglevel = 1
smtp_tls_security_level = may
smtp_tls_loglevel = 1
tls_ssl_options = NO_COMPRESSION
tls_high_cipherlist = ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256
tls_preempt_cipherlist = yes
smtpd_tls_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
smtp_tls_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
smtpd_tls_mandatory_ciphers = high
smtpd_tls_mandatory_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
smtpd_tls_exclude_ciphers = aNULL, LOW, EXP, MEDIUM, ADH, AECDH, MD5, DSS, ECDSA, CAMELLIA128, 3DES, CAMELLIA256, RSA+AES, eNULL
smtpd_tls_dh1024_param_file = /etc/postfix/dhparams.pem
smtpd_tls_CApath = /etc/ssl/certs
smtp_tls_CApath = /etc/ssl/certs

# Settings to prevent SPAM early
smtpd_helo_required = yes
smtpd_delay_reject = yes
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_helo_hostname, permit
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, check_policy_service unix:private/policyd-spf, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unknown_sender_domain
disable_vrfy_command = yes

# Postscreen settings to drop zombies/open relays/spam early
postscreen_dnsbl_action = enforce
postscreen_dnsbl_sites = zen.spamhaus.org*3
    bl.mailspike.net
    b.barracudacentral.org*2
    bl.spameatingmonkey.net
    bl.spamcop.net
    dnsbl.sorbs.net
    psbl.surriel.com
    list.dnswl.org=127.0.[0..255].0*-2
    list.dnswl.org=127.0.[0..255].1*-3
    list.dnswl.org=127.0.[0..255].[2..3]*-4
postscreen_dnsbl_threshold = 3
postscreen_dnsbl_whitelist_threshold = -1
postscreen_greet_action = enforce
postscreen_bare_newline_action = enforce

# SASL
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = /var/spool/postfix/private/auth
smtpd_sasl_type = dovecot

smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydomain
broken_sasl_auth_clients = yes

# Mail directory
virtual_transport = lmtp:unix:/var/run/dovecot/lmtp
virtual_mailbox_domains = /etc/postfix/vhost
virtual_mailbox_maps = texthash:/etc/postfix/vmailbox
virtual_alias_maps = texthash:/etc/postfix/virtual

# Additional option for filtering
content_filter = smtp-amavis:[127.0.0.1]:10024

# Milters used by DKIM
milter_protocol = 6
milter_default_action = accept
dkim_milter = inet:localhost:8891
dmarc_milter = inet:localhost:8893
smtpd_milters = $dkim_milter,$dmarc_milter
non_smtpd_milters = $dkim_milter

# SPF policy settings
policyd-spf_time_limit = 3600

# Header checks for content inspection on receiving
header_checks = pcre:/etc/postfix/maps/header_checks.pcre

# Remove unwanted headers that reveail our privacy
smtp_header_checks = pcre:/etc/postfix/maps/sender_header_filter.pcre
myhostname = mail.mojadomena.pl
mydomain = mojadomena.pl
smtputf8_enable = no
message_size_limit = 102400000
compatibility_level = 2

header_checks.pcre: Pusty

sender_header_filter.pcre:

Kod:

/^\s*Received:.*with ESMTPSA/       IGNORE
/^\s*Received:.*amavisd-new/        IGNORE
/^\s*X-Originating-IP:/             IGNORE
/^\s*X-Mailer:/                     IGNORE
/^\s*Mime-Version: 1.0.*/           REPLACE Mime-Version: 1.0
/^\s*User-Agent/                    IGNORE
/^\s*X-Enigmail/                    IGNORE
/^\s*X-Mailer/                      IGNORE
/^\s*X-Originating-IP/              IGNORE
/^\s*Received: from.*127.0.0.1/     IGNORE

Wersja Debiana: 9.12

Pozdrawiam

Ostatnio edytowany przez q0o (2020-04-20 12:28:52)

Offline

 

#2  2020-04-20 14:09:32

  Jacekalex - Podobno człowiek...;)

Jacekalex
Podobno człowiek...;)
Skąd: /dev/random
Zarejestrowany: 2008-01-07

Re: Postfix i fetchmail - problem 501 z dostarczaniem niektórych e-maili

Jeżeli Postfix zwraca, to włacz tryb verbose w Postfixie i tam zobacz, w logach Postfixa, co się dzieje.

Poza tym Fetchmail jest do pobierania poczty protokołami POP albo IMAP,
tymczasem Postfix jest serwerem SMTP.
Reasumując, co ma piernik do wiatraka a Fechmail do Postfixa?

To by było na tyle

Ostatnio edytowany przez Jacekalex (2020-04-20 15:10:35)


W demokracji każdy naród ma taką władzę, na jaką zasługuje ;)
Si vis pacem  para bellum  ;)       |       Pozdrawiam :)

Offline

 

#3  2020-04-30 17:24:31

  q0o - Nowy użytkownik

q0o
Nowy użytkownik
Zarejestrowany: 2020-04-20

Re: Postfix i fetchmail - problem 501 z dostarczaniem niektórych e-maili

Dziękuję za uwagi i wskazówki.
Faktycznie wcześniej nie skorzystałem z opcji bardziej szczegółowego logowania zdarzeń w postfixie, bo wydawało mi się, że problem leży gdzie indziej.

Początkowo planowane dodanie wpisu wycinającego ciąg znaków "#015#012 " i przepisującego pozostałą część wartości nagłówka jednak nie naprawiło problemu, bo znak nowej linii jest interpretowany jako koniec łańcucha znaków będącego wartością nagłówka. W celu przetestowania "na próbę" zapisałem w pliku wskazanym w "smtpd_command_filter" dwie wersje wpisu:

Kod:

/^Return-Path:(.*)#015#012\ (.*)$/ REPLACE Return-Path:$1$2
/^MAIL FROM:(.*)#015#012\ (.*)$/ REPLACE MAIL FROM:$1$2

Po aktywacji bardziej szczegółowego zapisywania logów w Postfix (opcją "debug_peer_list") wyświetlił się log następującego przebiegu programu:

Kod:

...
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: > localhost[127.0.0.1]: 250 DSN
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: watchdog_pat: 0x55815ba4fa70
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: < localhost[127.0.0.1]: MAIL FROM:<01000171c1454b83-215d2d85-a8e7-4412-ba60-6200647f8752-000000@m
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: > localhost[127.0.0.1]: 501 5.1.7 Bad sender address syntax
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: watchdog_pat: 0x55815ba4fa70
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: < localhost[127.0.0.1]:  ail.crowdin.com> SIZE=9287
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: match_string: smtpd_forbidden_commands: ail.crowdin.com> ~? connect
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: match_string: smtpd_forbidden_commands: ail.crowdin.com> ~? get
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: match_string: smtpd_forbidden_commands: ail.crowdin.com> ~? post
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: match_list_match: ail.crowdin.com>: no match
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: report unknown command to all milters
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: milter8_unknown_event: milter inet:localhost:8891: unknown command: ail.crowdin.com>
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: event: SMFIC_UNKNOWN; macros: (none)
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: skipping event SMFIC_UNKNOWN for milter inet:localhost:8891
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: milter8_unknown_event: skip milter inet:localhost:8893
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: > localhost[127.0.0.1]: 502 5.5.2 Error: command not recognized
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: watchdog_pat: 0x55815ba4fa70
mail                  | Apr 30 13:56:02 mail fetchmail[1551]: reading message username@o2.pl@poczta.o2.pl:1 of 1 (9287 octets) (log message incomplete)
mail                  | Apr 30 13:56:02 mail fetchmail[1551]: SMTP error: 501 5.1.7 Bad sender address syntax
mail                  | Apr 30 13:56:02 mail fetchmail[1551]:  not flushed
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: < localhost[127.0.0.1]: RSET
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: > localhost[127.0.0.1]: 250 2.0.0 Ok
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: watchdog_pat: 0x55815ba4fa70
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: < localhost[127.0.0.1]: QUIT
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: > localhost[127.0.0.1]: 221 2.0.0 Bye
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: match_hostname: smtpd_client_event_limit_exceptions: localhost ~? 127.0.0.0/8
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: match_hostaddr: smtpd_client_event_limit_exceptions: 127.0.0.1 ~? 127.0.0.0/8
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: abort all milters
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: milter8_abort: abort milter inet:localhost:8891
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: milter8_abort: skip milter inet:localhost:8893
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: disconnect event to all milters
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: milter8_disc_event: quit milter inet:localhost:8891
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: milter8_disc_event: skip quit milter inet:localhost:8893
mail                  | Apr 30 13:56:02 mail postfix/smtpd[1556]: disconnect from localhost[127.0.0.1] ehlo=1 mail=0/1 rset=1 quit=1 unknown=0/1 commands=3/5

Czyli wartość jest rozdzielana na dwie oddzielne instrukcje.
Szczerze mówiąc w tej chwili nie mam pomysłu na naprawę lub obejście tego problemu.
Czy mógłby ktoś podpowiedzieć, czy w ogóle istnieje możliwość przepisania (rewrite) dwóch linii następujących po sobie? Podejrzewam, że nie, bo są one przetwarzane pewnie jedna po drugiej - sekwencyjnie, ale może się mylę.
A może ktoś zetknął się już z takim problemem?
Nie oczekuję oczywiście "gotowca", ale byłbym wdzięczny za wskazówkę odnośnie dalszej analizy lub możliwości naprawy problemu.

Ostatnio edytowany przez q0o (2020-04-30 17:27:45)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)