Portál AbcLinuxu, 14. května 2025 01:29
smtp-amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 127.0.0.1:10024 inet n - - - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yesa main.cf
.... content_filter = smtp-amavis:127.0.0.1:10025v amavis configuraci mam nastavene zobrazovani hlavicek a port 10025:
.... $inet_socket_port = 10025; # accept SMTP on this local TCP port .... # Add X-Virus-Scanned header field to mail? $X_HEADER_TAG = 'X-Virus-Scanned'; # (default: 'X-Virus-Scanned') # Set to empty to add no header field # (dflt "$myproduct_name at $mydomain") $X_HEADER_LINE = "$myproduct_name at $mydomain"; $X_HEADER_LINE = "by $myproduct_name using ClamAV at $mydomain"; $X_HEADER_LINE = "$myproduct_name $myversion_id ($myversion_date) at $mydomain";vše mám udělané z amavisd-config.sample protoze na internetu kde jsou nejake manualy a example configu nikdy mi to nefunguje (nejde spustit amavis) s konfigem sample mi to funguje jen mi to nepridava hlavicky a myslim, ze ani nefunguje, zaznamenava se to nejak v logu? Muzu to nekde najit? Diky
$forward_method
a $notify_method
v amavis.conf?
main.cf
content_filter = smtp-amavis:[127.0.0.1]:10025
zkusit
$> telnet localhost 10025
mel by se ohlasit amavis. Totez na port 1024 a mel by se ohlasti smtp relaci postfix.
... 4init_socket = "10025"; $notify_method = 'smtp:[127.0.0.1]:10024'; $forward_method = 'smtp:[127.0.0.1]:10024'; # set to undef with milter! # Add X-Virus-Scanned header field to mail? $X_HEADER_TAG = 'X-Virus-Scanned'; # (default: 'X-Virus-Scanned') # Set to empty to add no header field # (dflt "$myproduct_name at $mydomain") $X_HEADER_LINE = "$myproduct_name at $mydomain"; $X_HEADER_LINE = "by $myproduct_name using ClamAV at $mydomain"; $X_HEADER_LINE = "$myproduct_name $myversion_id ($myversion_date) at $mydomain";
telnet localhost 10025
, ten funguje?
smtp inet n - - - - smtpd -o content_filter=spamassassinkdyz jsem ho zakomentoval a pridal jen smtp inet n - y - - smtpd , tak mi to uz bezi, ale asi mi to neoveruje spam, je to tak? Diky za pripadnou odpoved
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.