G'day,
I've got a moderately new postfix setup on NetBSD 5.x running from
pkgsrc, postfix 2.11.5
I'm having trouble with squirrelmail on localhost sending outbound
email, and also if I just telnet to it from itself, so it's not trusting
localhost, the error :
bash-4.3# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 rollcage3.bl.echidna.id.au ESMTP Postfix
ehlo localhost
250-rollcage3.bl.echidna.id.au
250-PIPELINING
250-SIZE 20480000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH DIGEST-MD5 PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: c...@aboc.com.au
250 2.1.0 Ok
rcpt to: carl.i.bre...@gmail.com
554 5.7.1 <carl.i.bre...@gmail.com>: Relay access denied
quit
221 2.0.0 Bye
Connection closed by foreign host.
that should work ...
anyway, it's not, so I've got something wrong in my postfix config.
Here's the postfix log for the above :
Jul 20 20:43:29 postfix/postscreen[9123]: CONNECT from
[127.0.0.1]:57677 to [127.0.0.1]:25
Jul 20 20:43:29 postfix/postscreen[9123]: WHITELISTED [127.0.0.1]:57677
Jul 20 20:43:29 postfix/smtpd[5337]: connect from localhost[127.0.0.1]
Jul 20 20:43:29 postfix/smtpd[5337]: warning: connect to Milter service
unix:/var/run/spamass.sock: Permission denied
Jul 20 20:44:00 postfix/smtpd[5337]: NOQUEUE: reject: RCPT from
localhost[127.0.0.1]: 454 4.7.1 <carl.i.bre...@gmail.com>: Relay access
denied; from=<c...@aboc.net.au> to=<carl.i.bre...@gmail.com> proto=ESMTP
helo=<localhost>
Jul 20 20:44:26 postfix/smtpd[5337]: disconnect from localhost[127.0.0.1]
(yes, I know about spamass.sock, but that's not causing this problem)
postconf -n :
address_verify_map = btree:$data_directory/verify_cache
alias_database = hash:/usr/pkg/etc/postfix/aliases
alias_maps = hash:/usr/pkg/etc/postfix/aliases
command_directory = /usr/pkg/sbin
config_directory = /usr/pkg/etc/postfix
daemon_directory = /usr/pkg/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_
directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
lmtp_tls_mandatory_protocols = !SSLv2
mail_owner = postfix
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
mailq_path = /usr/pkg/bin/mailq
manpage_directory = /usr/pkg/man
message_size_limit = 20480000
milter_default_action = accept
myhostname = rollcage3.bl.echidna.id.au
mynetworks = hash:/usr/pkg/etc/postfix/network_table
newaliases_path = /usr/pkg/bin/newaliases
postscreen_access_list =
permit_mynetworks,cidr:/usr/pkg/etc/postfix/postscreen_access.cidr
postscreen_dnsbl_sites = zen.spamhaus.org*3 b.barracudacentral.org*2
bl.spameatingmonkey.net*2 dnsbl.ahbl.org*2 bl.spamcop.net
dnsbl.sorbs.net psbl.surriel.com
bl.mailspike.net swl.spamhaus.org*-4
list.dnswl.org=127.[0..255].[0..255].0*-2 l
ist.dnswl.org=127.[0..255].[0..255].1*-3
list.dnswl.org=127.[0..255].[0..255].[2
..255]*-4
postscreen_dnsbl_threshold = 3
postscreen_greet_action = enforce
queue_directory = /var/spool/postfix
readme_directory = /usr/pkg/share/doc/postfix
relay_recipient_maps = hash:/usr/pkg/etc/postfix/relay_recipients
sample_directory = /usr/pkg/share/examples/postfix
sendmail_path = /usr/pkg/sbin/sendmail
setgid_group = maildrop
smtp_tls_mandatory_protocols = !SSLv2
smtpd_banner = $myhostname ESMTP $mail_name (how far can a goat see-2.11.3)
smtpd_milters =
unix:/var/clamav/clamav-milter.socket,unix:/var/run/spamass.sock
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
reject_unknown_recipient_domain
reject_unverified_recipient
smtpd_relay_restrictions = permit_mynetworks
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_sasl_type = cyrus
smtpd_tls_cert_file =
/usr/pkg/etc/postfix/certs/rollcage.bl.echidna.id.au.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_mandatory_protocols = !SSLv2
smtpd_tls_security_level = may
transport_maps = hash:/usr/pkg/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/usr/pkg/etc/postfix/virtual
virtual_mailbox_domains = /usr/pkg/etc/postfix/virtual_mailbox_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
/usr/pkg/sbin/postconf -Mf
smtp inet n - n - 1 postscreen
smtpd pass - - n - - smtpd
dnsblog unix - - n - 0 dnsblog
tlsproxy unix - - n - 0 tlsproxy
submission inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
network_table contains :
more network_table
203.6.241.0/24 OK
127.0.0.0/8 OK
192.168.2.0 OK
Can anyone beat me with a cluestick? I'm stuck!
Thank you
Carl