M-am gândit să fiu inteligent și să adaug amavis/spamassassin/clamav la instalarea mea de lucru Postfix. L-am pus să funcționeze și apoi am făcut o schimbare. Am plecat, am băut o bere, apoi am aflat că m-am înghesuit. Asta se întâmplă acum
Oct 2 22:01:59 wilma postfix/smtpd[1048101]: Conexiune TLS anonimă stabilită de la mail-pf1-f172.google.com[209.85.210.172]: TLSv1.3 cu cifră TLS_AES_128_GCM_SHA282568 (1285.210.172) X25519 server-semnătură RSA-PSS (2048 biți) server-digest SHA256
2 octombrie 22:01:59 wilma postfix/smtpd[1048101]: avertisment: conectează-te la privat/politică: conexiune refuzată
2 octombrie 22:01:59 wilma postfix/smtpd[1048101]: avertisment: problemă la vorbirea cu serverul privat/politică: conexiune refuzată
Oct 2 22:02:00 wilma postfix/smtpd[1048101]: avertisment: conectează-te la privat/politică: conexiune refuzată
2 octombrie 22:02:00 wilma postfix/smtpd[1048101]: avertisment: problemă la comunicarea cu serverul privat/politică: conexiune refuzată
Oct 2 22:02:00 wilma postfix/smtpd[1048101]: NOQUEUE: respinge: RCPT de la mail-pf1-f172.google.com[209.85.210.172]: 451 4.3.5 <---@---.kiwi .nz>: adresa destinatarului respinsă: problemă de configurare a serverului; de la=<---@gmail.com> la=<mike@----.kiwi.nz> proto=ESMTP helo=<mail-pf1-f172.google.com>
Oct 2 22:02:02 wilma postfix/smtpd[1048101]: deconectați-vă de la mail-pf1-f172.google.com[209.85.210.172] ehlo=2 starttls=1 mail=1 rcpt=0/1 bdat=0/1 ieșire=1 comenzi=5/7
Am căutat pe Google în sus și în jos căutând un răspuns, se pare că „451 4.3.5” este o eroare generică.
Aici este master.cf...
smtp inet n - n - - smtpd
depunerea inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
curatare unix n - n - 0 curatare
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rescrie unix - - n - - trivial-rescriere
bounce unix - - n - 0 bounce
amână unix - - n - 0 săritură
trace unix - - n - 0 săritură
verifica unix - - n - 1 verifica
spălați Unix n - n 1000? 0 culoare
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
releu unix - - n - - smtp -o smtp_fallback_relay=
showq unix n - n - - showq
eroare unix - - n - - eroare
reîncercați Unix - - n - - eroare
arunca unix - - n - - arunca
unix local - n n - - local
unix virtual - n n - - virtual
lmtp unix - - n - - lmtp
nicovală unix - - n - 1 nicovală
scache unix - - n - 1 scache
smtp-amavis unix - - n - 2 smtp -o syslog_name=postfix/amavis -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=nsecurity_tls=20curity_t
127.0.0.1:10025 inet n - n - - smtpd -o syslog_name=postfix/10025 -o content_filter= -o mynetworks_style=host -o mynetworks=127.0.0.0/8 -o local_recipient_maps= -o ient_stricte_relepsf_recip= -o stricte_revelopsf82 -o smtp_tls_security_level=none -o smtpd_tls_security_level=none -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_end_of_data_restrictions= -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_body_checks_recipients
principal.cf este
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = da
canonical_maps = hash:/etc/postfix/canonical
director_comandă = /usr/sbin
content_filter = smtp-amavis:[127.0.0.1]:10024
directorul_date = /var/lib/postfix
nivel_debug_peer_level = 1
debug_peer_list =
default_privs = mail
delay_warning_time = 4
header_checks = regexp:/etc/postfix/regexp_table
html_directory = nr
in_flow_delay = 1s
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps = unix:passwd.byname $alias_maps
local_transport = local
mail_owner = postfix
mail_spool_directory = /var/virtual
mailbox_command = /usr/bin/procmail -a „$EXTENSION”
mailbox_size_limit = 3221225472
mailq_path = /usr/bin/mailq.postfix
director_manpage = /usr/share/man
mesaj_size_limit = 25971520
mydestination = $myhostname, localhost.$mydomain, $mydomain, lists.$mydomain
mydomain = mike-mac.gen.nz
myhostname = mail.mike-mac.gen.nz
mynetworks = 192.168.1.0/24 192.168.3.0/24 webmail.mike-mac.gen.nz localhost.localdomain localhost
myorigin = $mydomain
calea_newaliases = /usr/bin/newaliases.postfix
director_codă = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.13/README_FILES
receive_override_options = no_address_mappings
destinatar_delimiter = +
cod_reject = 550
sample_directory = /usr/share/doc/postfix-2.0.13/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = da
smtp_tls_security_level = mai
smtpd_hard_error_limit = 4
smtpd_helo_required = nr
smtpd_helo_restrictions = permit_mynetworks, check_helo_access hash:/etc/postfix/helo_access
smtpd_proxy_options = speed_adjust
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unknown_sender_domain, check_policy_service unix:private/policy, reject_rbl_client zen.spamhaus.org, reject_rbl_client zen.spamhaus.org, reject_rbl_coclient.bluse.bl.
smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unknown_sender_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client.org
smtpd_sasl_auth_enable = da
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = porumbel
smtpd_soft_error_limit = 2
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = nr
smtpd_tls_cert_file = /etc/letsencrypt/live/Email_cert/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/Email_cert/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = da
smtpd_tls_security_level = mai
smtpd_tls_session_cache_timeout = 3600s
strict_mailbox_ownership = nr
tls_random_source = dev:/dev/urandom
undisclosed_recipients_header = Către: NotSayingWhoGetsThis:;
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:12
virtual_mailbox_base = /var/virtual
virtual_mailbox_domains = hash:/etc/postfix/vmaildomains
virtual_mailbox_limit = 2147483648
virtual_mailbox_maps = hash:/etc/postfix/vmailbox,hash:/etc/postfix/virtual-user-map-family.kiwi.nz,hash:/etc/postfix/virtual-user-map-coders.kiwi.nz,hash :/etc/postfix/virtual-user-map-mak.co.nz,hash:/etc/postfix/virtual-user-map-lessonplans.kiwi.nz
virtual_minimum_uid = 1
virtual_transport = virtual
virtual_uid_maps = static:8`
Demonii care rulează sunt
systemctl status postfix postgrey amavis spamassassin clamav-freshclam
â postfix.service - Agent de transport de e-mail Postfix
Încărcat: încărcat (/lib/systemd/system/postfix.service; activat; prestabilit furnizor: activat)
Activ: activ (ieșit) din sâmb. 2021-10-02 21:58:34 NZDT; acum 29 minute
Proces: 1047688 ExecStart=/bin/true (cod=exit, status=0/SUCCESS)
PID principal: 1047688 (cod=ieșit, stare=0/SUCCESS)
Oct 02 21:58:34 wilma systemd[1]: Se pornește Postfix Mail Transport Agent...
Oct 02 21:58:34 wilma systemd[1]: Agent de transport de corespondență Postfix finalizat.
â postgrey.service - LSB: Porniți/opriți demonul postgrey
Încărcat: încărcat (/etc/init.d/postgrey; generat)
Activ: activ (în rulare) din sâmb. 2021-10-02 21:58:34 NZDT; acum 29 minute
Documente: man:systemd-sysv-generator(8)
Proces: 1047510 ExecStart=/etc/init.d/postgrey start (cod=exit, status=0/SUCCESS)
Sarcini: 1 (limită: 17839)
Memorie: 18,7 M
CGroup: /system.slice/postgrey.service
ââ1039871 postgrey --pidfile=/var/run/postgrey.pid --daemonize --inet=10023
Oct 02 21:58:34 wilma postgrey[1047518]: lista albă: 194.7.234.142/32
Oct 02 21:58:34 wilma postgrey[1047518]: lista albă: 194.7.234.143/32
Oct 02 21:58:34 wilma postgrey[1047518]: pe lista albă: 213.143.66.210/32
Oct 02 21:58:34 wilma postgrey[1047518]: fișierul_pid „/var/run/postgrey.pid” există deja. Suprascriere!
Oct 02 21:58:34 wilma postgrey[1047583]: proces în fundal
Oct 02 21:58:34 wilma systemd[1]: A pornit LSB: Porniți/opriți demonul postgri.
Oct 02 21:58:34 wilma postgrey[1047510]: ...gata.
Oct 02 21:58:34 wilma postgrey[1047583]: 2021/10/02-21:58:34 postgrey (tip Net::Server::Multiplex) începe! pid(1047583)
Oct 02 21:58:34 wilma postgrey[1047583]: Rezolvat [localhost]:10023 la [127.0.0.1]:10023, IPv4
Oct 02 21:58:34 wilma postgrey[1047583]: Legare la portul TCP 10023 pe gazda 127.0.0.1 cu IPv4
â amavis.service - LSB: Pornește amavisd-new mailfilter
Încărcat: încărcat (/etc/init.d/amavis; generat)
Activ: activ (în rulare) din sâmb. 2021-10-02 21:58:35 NZDT; acum 29 minute
Documente: man:systemd-sysv-generator(8)
Proces: 1047562 ExecStart=/etc/init.d/amavis start (cod=exit, status=0/SUCCESS)
Sarcini: 3 (limită: 17839)
Memorie: 160,8 M
CGroup: /system.slice/amavis.service
ââ1047705 /usr/sbin/amavisd-new (master)
ââ1047714 /usr/sbin/amavisd-new (copil virgin)
ââ1047715 /usr/sbin/amavisd-new (copil virgin)
Oct 02 21:58:35 wilma amavis[1047705]: Niciun program ext pentru .zoo, încercat: zoo
Oct 02 21:58:35 wilma amavis[1047705]: Fără program ext pentru .doc, încercat: ripole
Oct 02 21:58:35 wilma amavis[1047705]: Fără decodor pentru .F
Oct 02 21:58:35 wilma amavis[1047705]: Fără decodor pentru .doc
Oct 02 21:58:35 wilma amavis[1047705]: Fără decodor pentru .lrz
Oct 02 21:58:35 wilma amavis[1047705]: Fără decodor pentru .zoo
Oct 02 21:58:35 wilma amavis[1047562]: Pornind amavisd: amavisd-new.
Oct 02 21:58:35 wilma amavis[1047705]: Utilizarea codului principal al scanerului AV intern pentru ClamAV-clamd
Oct 02 21:58:35 wilma systemd[1]: A pornit LSB: Pornește amavisd-new mailfilter.
Oct 02 21:58:35 wilma amavis[1047705]: S-a găsit un scaner av secundar ClamAV-clamscan la /usr/bin/clamscan
â spamassassin.service - Filtru de spam bazat pe Perl folosind analiza textului
Încărcat: încărcat (/lib/systemd/system/spamassassin.service; activat; prestabilit furnizor: activat)
Activ: activ (în rulare) din sâmb. 2021-10-02 21:58:36 NZDT; acum 29 minute
Proces: 1047534 ExecStart=/usr/sbin/spamd -d --pidfile=/run/spamd.pid $OPTIONS (cod=exit, status=0/SUCCESS)
PID principal: 1047641 (spamd)
Sarcini: 3 (limită: 17839)
Memorie: 109,2 M
CGroup: /system.slice/spamassassin.service
ââ1047641 /usr/bin/perl -T -w /usr/sbin/spamd -d --pidfile=/run/spamd.pid --create-prefs --max-children 5 --username >
ââ1047711 spamd copil
ââ1047712 spamd copil
Oct 02 21:58:33 wilma systemd[1]: Se pornește filtrul de spam bazat pe Perl utilizând analiza textului...
Oct 02 21:58:36 wilma systemd[1]: S-a pornit filtrul de spam bazat pe Perl folosind analiza textului.
â clamav-freshclam.service - Actualizator de baze de date viruși ClamAV
Încărcat: încărcat (/lib/systemd/system/clamav-freshclam.service; activat; prestabilit furnizor: activat)
Activ: activ (în rulare) din sâmb. 2021-10-02 16:08:46 NZDT; acum 6 ore
Documente: man:freshclam(1)
man:freshclam.conf(5)
https://www.clamav.net/documents
PID principal: 990816 (freshclam)
Sarcini: 1 (limită: 17839)
Memorie: 227,4 M
CGroup: /system.slice/clamav-freshclam.service
ââ990816 /usr/bin/freshclam -d --foreground=true
Oct 02 21:09:46 wilma freshclam[990816]: Sat Oct 2 21:09:46 2021 -> baza de date main.cvd este actualizată (versiunea: 62, semne: 6647427, >
Oct 02 21:09:46 wilma freshclam[990816]: Sat Oct 2 21:09:46 2021 -> baza de date bytecode.cld este actualizată (versiunea: 333, semnele: 92, >
Oct 02 22:09:46 wilma freshclam[990816]: Sat Oct 2 22:09:46 2021 -> Semnal primit: trezire
02 oct 22:09:46 wilma freshclam[990816]: sâmb. 2 oct 22:09:46 2021 -> Procesul de actualizare ClamAV a început la sâmb. 2 oct 22:09:46 2021
Oct 02 22:09:46 wilma freshclam[990816]: Sat Oct 2 22:09:46 2021 -> ^Instalarea dvs. ClamAV este DEPOZITĂ!
Oct 02 22:09:46 wilma freshclam[990816]: Sat Oct 2 22:09:46 2021 -> ^Versiune locală: 0.103.2 Versiune recomandată: 0.103.3
Oct 02 22:09:46 wilma freshclam[990816]: Sat Oct 2 22:09:46 2021 -> NU INTRATI! Citiți https://www.clamav.net/documents/upgrading->
Oct 02 22:09:46 wilma freshclam[990816]: Sat Oct 2 22:09:46 2021 -> baza de date daily.cvd este actualizată (versiunea: 26309, semne: 19380>
Oct 02 22:09:46 wilma freshclam[990816]: Sat Oct 2 22:09:46 2021 -> baza de date main.cvd este actualizată (versiunea: 62, semne: 6647427, >
Oct 02 22:09:46 wilma freshclam[990816]: Sat Oct 2 22:09:46 2021 -> baza de date bytecode.cld este actualizată (versiunea: 333, semnele: 92,
Îmi dau seama că cea mai mare greșeală a mea a fost una de prostie, ar fi trebuit să fac copii de siguranță ale fișierelor principale și master.cf înainte de a începe. Acestea fiind spuse, poate cineva să vadă ce nu pot?
postconf -n
access_map_reject_code = 550
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = da
canonical_maps = hash:/etc/postfix/canonical
director_comandă = /usr/sbin
content_filter = smtp-amavis:[127.0.0.1]:10024
directorul_date = /var/lib/postfix
nivel_debug_peer_level = 1
debug_peer_list =
default_privs = mail
delay_warning_time = 4
header_checks = regexp:/etc/postfix/regexp_table
html_directory = nr
in_flow_delay = 1s
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps = unix:passwd.byname $alias_maps
local_transport = local
mail_owner = postfix
mail_spool_directory = /var/virtual
mailbox_command = /usr/bin/procmail -a „$EXTENSION”
mailbox_size_limit = 3221225472
mailq_path = /usr/bin/mailq.postfix
director_manpage = /usr/share/man
mesaj_size_limit = 25971520
mydestination = $myhostname, localhost.$mydomain, $mydomain, lists.$mydomain
mydomain = mike-mac.gen.nz
myhostname = mail.mike-mac.gen.nz
mynetworks = 192.168.1.0/24 192.168.3.0/24 webmail.mike-mac.gen.nz localhost.localdomain localhost
myorigin = $mydomain
calea_newaliases = /usr/bin/newaliases.postfix
director_codă = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.0.13/README_FILES
receive_override_options = no_address_mappings
destinatar_delimiter = +
cod_reject = 550
sample_directory = /usr/share/doc/postfix-2.0.13/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = da
smtp_tls_security_level = mai
smtpd_hard_error_limit = 4
smtpd_helo_required = nr
smtpd_helo_restrictions = permit_mynetworks, check_helo_access hash:/etc/postfix/helo_access
smtpd_proxy_options = speed_adjust
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unknown_sender_domain, check_policy_service unix:private/policy, reject_rbl_client zen.spamhaus.org, reject_rbl_client zen.spamhaus.org, reject_rbl_coclient.bluse.bl.
smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unknown_sender_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client.org
smtpd_sasl_auth_enable = da
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = porumbel
smtpd_soft_error_limit = 2
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = nr
smtpd_tls_cert_file = /etc/letsencrypt/live/Email_cert/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/Email_cert/privkey.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = da
smtpd_tls_security_level = mai
smtpd_tls_session_cache_timeout = 3600s
strict_mailbox_ownership = nr
tls_random_source = dev:/dev/urandom
undisclosed_recipients_header = Către: NotSayingWhoGetsThis:;
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:12
virtual_mailbox_base = /var/virtual
virtual_mailbox_domains = hash:/etc/postfix/vmaildomains
virtual_mailbox_limit = 2147483648
virtual_mailbox_maps = hash:/etc/postfix/vmailbox,hash:/etc/postfix/virtual-user-map-family.kiwi.nz,hash:/etc/postfix/virtual-user-map-coders.kiwi.nz,hash :/etc/postfix/virtual-user-map-mak.co.nz,hash:/etc/postfix/virtual-user-map-lessonplans.kiwi.nz
virtual_minimum_uid = 1
virtual_transport = virtual
virtual_uid_maps = static:8
postconf -M
smtp inet n - n - - smtpd
depunerea inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
curatare unix n - n - 0 curatare
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rescrie unix - - n - - trivial-rescriere
bounce unix - - n - 0 bounce
amână unix - - n - 0 săritură
trace unix - - n - 0 săritură
verifica unix - - n - 1 verifica
spălați Unix n - n 1000? 0 culoare
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
releu unix - - n - - smtp -o smtp_fallback_relay=
showq unix n - n - - showq
eroare unix - - n - - eroare
reîncercați Unix - - n - - eroare
arunca unix - - n - - arunca
unix local - n n - - local
unix virtual - n n - - virtual
lmtp unix - - n - - lmtp
nicovală unix - - n - 1 nicovală
scache unix - - n - 1 scache
smtp-amavis unix - - n - 2 smtp -o syslog_name=postfix/amavis -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=nsecurity_tls=20curity_t
127.0.0.1:10025 inet n - n - - smtpd -o syslog_name=postfix/10025 -o content_filter= -o mynetworks_style=host -o mynetworks=127.0.0.0/8 -o local_recipient_maps= -o ient_stricte_relepsf_recip= -o stricte_revelopsf82 -o smtp_tls_security_level=none -o smtpd_tls_security_level=none -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_end_of_data_restrictions= -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_body_checks_recipients