Portál AbcLinuxu, 11. května 2025 10:36
root@mail2:/var/mail# cat /etc/amavisd.conf | grep 10025 # $notify_method = 'smtp:[127.0.0.1]:10025'; # $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!
/etc/amavis/conf.dkde je konfigurace rozdelena do nekolika souboru a prave
$notify_method = 'smtp:[127.0.0.1]:10025'; $forward_method = 'smtp:[127.0.0.1]:10025';tam vubec neni ani v jednom z nich a ani to neni v
/usr/share/amavis/conf.dkde jsou dalsi 2 konfiguracni soubory. Je mozne, ze je to nyni a) defaultni nastaveni a tudiz se to nemusi nastavovat pokud to jede vse na lokalu nebo za b) je to ta moje myslenka(i kdyz o ni pochybuji), ze si proste amavis pamatuje kam to vratit s tim rozdilem ze to posle na 10025.
/etc/amavis/conf.d/20-debian_defaults $unix_socketname = undef; $inet_socket_port = 10024; # default listenting socket $inet_socket_bind = '192.168.1.6'; @inet_acl = qw( 192.168.1.5 );s timhle nastavenim v tom souboru mi to chodi. Na vsech serverech distribude
DF1D41B8CD 40951 Thu Nov 29 21:58:17 email1@domena1.tld (host ip-amavis[ip-amavis] said: 451 4.5.0 Error in processing, id=02773-04, quar+notif FAILED: temporarily unable to quarantine: 450 4.4.1 Can't connect to ip-postfix port 10025, (Chybn\375 popisova\350 souboru) at (eval 47) line 145, <GEN26> line 1680., MTA([ip-postfix]:10025), id=02773-04 at /usr/sbin/amavisd-new line 8682, <GEN26> line 1680. (in reply to end of DATA command)) email2@domena2.tld DF08C1B8A8 2068 Thu Nov 29 21:57:24 email3@domena3.tld (host ip-amavis[ip-amavis] said: 450 4.4.1 Can't connect to ip-postfix port 10025, (Chybn\375 popisova\350 souboru) at (eval 47) line 145, <GEN26> line 138., MTA([ip-postfix]:10025), id=02771-01 (in reply to end of DATA command))tak jsem zagooglil a dle ruznych rad jsem se zkousel dostat mimojine telnetem na ten port a bylo to ok a zajimave take je, ze netstat -na ma navazana spojeni:
tcp 0 0 ip-postfix:10025 ip-amavis:50357 SPOJENO tcp 0 0 ip-postfix:10025 ip-amavis:50356 SPOJENO tcp 0 0 ip-postfix:10025 ip-amavis:50359 SPOJENOjeste uvedu provedene zmeny oproti puvodnimu nastaveni, kdy vse jelo na jednom stroji v main.cf:
content_filter = amavis:[ip-amavis]:10024 smtpd_bind_address=ip-postfixa v master.cf:
ip-postfix:10025 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,ip-postfix,ip-amavis -o strict_rfc821_envelopes=yes -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtpd_bind_address=ip-postfixza kazdou radu predem dekuji.
-o mynetworks = 127.0.0.0/8,ip-postfix,ip-amaviskde samozrejme nesmeji byt mezery, tudiz to ma byt :
-o mynetworks=127.0.0.0/8,ip-postfix,ip-amavisTimto se vsem omlouvam.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.