Pokusavam da podesim postfix na SUSE linuxu kao mail filter koji bi primio postu, test na virus i spam (amavis,spamassassin) a zatim je prosledio glavnom mail serveru.
Nasao sam nekoliko upustava za to ali uvek dobija gresku tipa
Probao sam razne kombinacije ali uvek dobije gornju proruku.
Main.cf
Master.cf
U /etc/postfix/transport imam:
Nasao sam nekoliko upustava za to ali uvek dobija gresku tipa
Code:
warning : connect to transport SMTP: No such file or directory
warning : connect to transport SMTP: No such file or directory
Probao sam razne kombinacije ali uvek dobije gornju proruku.
Main.cf
Code:
myorigin = domain.com
myhostname = postfix.domain.com
mydestination = mojdomen1.co.yu
mynetworks = 127.0.0.0/8
biff = no
message_size_limit = 100000000
local_transport = no local mail delivery
local_recipient_maps =
transport_maps = hash:/etc/postfix/transport
setgid_group = maildrop
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
smtpd_hello_required = yes
smtpd_hello_restrictions = permit_mynetworks,reject_invalid_hostname,reject_maps_rbl
maps_rbl_domains = sbl.spamhaus.org, relays.ordb.org, opm.blitzed.org, dun.dnsrbl.net, spam.dnsrbl.net
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient
header_checks = regexp:/etc/postfix/header_checks
content_filter = smtp-amavis:[localhost]:10024
myorigin = domain.com
myhostname = postfix.domain.com
mydestination = mojdomen1.co.yu
mynetworks = 127.0.0.0/8
biff = no
message_size_limit = 100000000
local_transport = no local mail delivery
local_recipient_maps =
transport_maps = hash:/etc/postfix/transport
setgid_group = maildrop
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
smtpd_hello_required = yes
smtpd_hello_restrictions = permit_mynetworks,reject_invalid_hostname,reject_maps_rbl
maps_rbl_domains = sbl.spamhaus.org, relays.ordb.org, opm.blitzed.org, dun.dnsrbl.net, spam.dnsrbl.net
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient
header_checks = regexp:/etc/postfix/header_checks
content_filter = smtp-amavis:[localhost]:10024
Master.cf
Code:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - y - - smtpd
#628 inet n - n - - qmqpd
pickup fifo n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr fifo n - y 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - y - - showq
error unix - - y - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=10.202.4.0/22
-o strict_rfc821_envelopes=yes
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - y - - smtpd
#628 inet n - n - - qmqpd
pickup fifo n - y 60 1 pickup
cleanup unix n - y - 0 cleanup
qmgr fifo n - y 300 1 qmgr
#qmgr fifo n - n 300 1 nqmgr
rewrite unix - - y - - trivial-rewrite
bounce unix - - y - 0 bounce
defer unix - - y - 0 bounce
flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - y - - smtp
relay unix - - y - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - y - - showq
error unix - - y - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - y - - lmtp
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=10.202.4.0/22
-o strict_rfc821_envelopes=yes
U /etc/postfix/transport imam:
Code:
mojdomen1.co.yu SMTP:[10.202.4.2]
mojdomen1.co.yu SMTP:[10.202.4.2]