Hi all .

i cannot use spamd .

smtpd.conf setting is same between no-spamd and spamd .
the difference is only pf.conf.

1) about no-spamd (send mail to gmail and recieve from gmail )
---------------
/etc/pf.conf
---------------
ext_if="em0"
tcp_services="{ 22, 25, 80,      143, 465, 587 }"
icmp_types="echoreq"
set block-policy return
set loginterface $ext_if
set skip on lo
set reassemble yes no-df
block in log
pass out quick
antispoof quick for { lo }
pass in on $ext_if inet proto tcp from any to ( $ext_if:0 ) port $tcp_services
pass in inet proto icmp all icmp-type $icmp_types
pass in on $ext_if proto tcp to port 21
pass in on $ext_if proto tcp to port > 4915


2) spamd (send mail to gmail bat *** cannot recieve from gmail *****)
-------------
black.pf
-------------
ext_if="em0"
tcp_services="{  22,     80,      143 }"
icmp_types="echoreq"
set block-policy return
set loginterface $ext_if
set skip on lo
set reassemble yes no-df
block in log
pass out quick
antispoof quick for { lo }

pass in on $ext_if proto tcp to any port submission
table <spamd> persist
table <spamd-white> persist
pass in on $ext_if proto tcp from any to any port smtp rdr-to 127.0.0.1 port spamd pass out on lo proto tcp from any to any <---- i think problem is here,

pass in on $ext_if inet proto tcp from any to ( $ext_if:0 ) port $tcp_services
pass in inet proto icmp all icmp-type $icmp_types
pass in on $ext_if proto tcp to port 21
pass in on $ext_if proto tcp to port > 4915


/etc/rc.d/smtpd         restart
/etc/rc.d/dovecot       restart
pfctl -f /etc/mail/black.pf
/etc/rc.d/spamd        -f restart
/etc/rc.d/spamlogd     -f restart
/usr/libexec/spamd-setup

and
netstat -na -f inet | grep 8025
tcp          0      0  *.8025                 *.* LISTEN
so spamd itself run .
but *** i cannot recieve from gmail *****


3)smtpd.conf
----------
pki mail.aoiyuma.mydns.jp certificate "/etc/ssl/mail.aoiyuma.mydns.jp.crt"
pki mail.aoiyuma.mydns.jp key "/etc/ssl/private/mail.aoiyuma.mydns.jp.key"
listen on lo0
listen on em0 tls pki mail.aoiyuma.mydns.jp auth-optional
listen on em0 port submission tls-require pki mail.aoiyuma.mydns.jp   auth
table aliases db:/etc/mail/aliases.db
accept from any for domain "aoiyuma.mydns.jp" deliver to maildir accept for local alias <aliases> deliver to maildir
accept from local               for any relay

--------------
regards



--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to