Hello!
My sendmail.log is filled up with messages about connection refused. I do not have much knowledge about sendmail,iI think iI will have to read the manual for configuring it later.
This is how /var/log/maillog typically looks like. It is reloaded quite often.
This is my pf.conf:
And my rc.conf:
What I wonder is:
My sendmail.log is filled up with messages about connection refused. I do not have much knowledge about sendmail,
This is how /var/log/maillog typically looks like. It is reloaded quite often.
Code:
Jan 27 03:16:57 nas sendmail[8436]: u0N259O9008763: to=root, ctladdr=root (0/0), delay=4+00:11:48, xdelay=00:00:00, mailer=relay, pri=480918, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsS083827: to=root, delay=5+00:11:45, xdelay=00:00:00, mailer=relay, pri=481511, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsS083827: u0R2GhvO008436: return to sender: Cannot send message for 5 days
Jan 27 03:16:57 nas sendmail[8436]: u0R2GhvO008436: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32890, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsT083827: to=root, delay=5+00:11:45, xdelay=00:00:00, mailer=relay, pri=481666, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsT083827: u0R2GhvP008436: return to sender: Cannot send message for 5 days
Jan 27 03:16:57 nas sendmail[8436]: u0R2GhvP008436: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33045, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsQ083827: to=root, delay=5+00:11:58, xdelay=00:00:00, mailer=relay, pri=482092, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsQ083827: u0R2GhvQ008436: return to sender: Cannot send message for 5 days
Jan 27 03:16:57 nas sendmail[8436]: u0R2GhvQ008436: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33667, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsU083827: to=root, delay=5+00:11:45, xdelay=00:00:00, mailer=relay, pri=482533, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsU083827: u0R2GhvR008436: return to sender: Cannot send message for 5 days
Jan 27 03:16:57 nas sendmail[8436]: u0R2GhvR008436: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33920, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0N259WZ008800: to=root, delay=4+00:11:34, xdelay=00:00:00, mailer=relay, pri=489083, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0N259WT008800: to=root, delay=4+00:11:47, xdelay=00:00:00, mailer=relay, pri=492020, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0N259Wa008800: to=postmaster, delay=4+00:11:34, xdelay=00:00:00, mailer=relay, pri=492073, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0N259mg008824: to=root, ctladdr=root (0/0), delay=4+00:11:48, xdelay=00:00:00, mailer=relay, pri=493747, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24wAW083790: to=root, ctladdr=root (0/0), delay=5+00:11:59, xdelay=00:00:00, mailer=relay, pri=570809, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24wAW083790: u0R2GhvS008436: sender notify: Cannot send message for 5 days
Jan 27 03:16:57 nas sendmail[8436]: u0R2GhvS008436: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32139, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xJZ083851: to=root, ctladdr=root (0/0), delay=5+00:11:58, xdelay=00:00:00, mailer=relay, pri=580690, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xJZ083851: u0R2GhvT008436: sender notify: Cannot send message for 5 days
Jan 27 03:16:57 nas sendmail[8436]: u0R2GhvT008436: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=132020, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsR083827: to=root, delay=5+00:11:46, xdelay=00:00:00, mailer=relay, pri=583946, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Jan 27 03:16:57 nas sendmail[8436]: u0M24xsR083827: u0R2GhvU008436: return to sender: Cannot send message for 5 days
Jan 27 03:16:57 nas sendmail[8436]: u0R2GhvU008436: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=135521, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
This is my pf.conf:
Code:
local_host="192.168.1.150"
udp_services = "{ ntp }"
tcp_services = "{ ssh }"
allowed_ips="{ 192.168.1.0/24 }"
table <blockedips> persist file "/etc/blocked_ips.conf"
interface="bge0"
set block-policy return
set skip on lo0
scrub in all
block all
block drop in log quick on $interface from <blockedips> to any
# Host
pass out on $interface inet from $local_host to any
pass in on $interface inet proto tcp from any to $local_host port $tcp_services
pass in on $interface inet proto udp from any to $local_host port $udp_services
pass in on $interface inet proto icmp from any to $local_host icmp-type echoreq
pass out on $interface inet from $local_host to $allowed_ips
pass in on $interface inet from $allowed_ips to $local_host
# Jails
ip_jails ="{ 192.168.1.151 , 192.168.1.152 }"
pass out on $interface inet from $ip_jails to any
# MySQL Jail
pass in on $interface inet proto tcp from any to 192.168.1.151 port mysql
# www Jail
pass in on $interface inet proto tcp from $allowed_ips to 192.168.1.152 port 22
pass in on $interface inet proto tcp from any to 192.168.1.152 port {http,https}
table <sshguard> persist
block drop in log quick on $interface inet from <sshguard> to any
And my rc.conf:
Code:
hostname="nas"
keymap="swedish.iso.kbd"
syslogd_enable="YES"
syslogd_flags="-s -b 127.0.0.1"
zfs_enable="YES"
dumpdev="AUTO"
ifconfig_bge0="192.168.1.150 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
sshd_enable="YES"
# Disable sendmail
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
# Date and time settings
ntpd_enable="YES"
ntpdate_enable="YES"
nptdate_hosts="0.se.pool.ntp.org"
# PF Firewall and sshguard
pf_enable="YES"
pf_rules="/etc/pf.conf"
sshguard_enable="YES"
sshguard_safety_thresh="30"
sshguard_pardon_min_intervall="600"
sshguard_prescribe_interval="7200"
# Jail settings
ezjail_enable="YES"
gateway_enable="YES"
ifconfig_bge0_alias0="inet 192.168.1.151 netmask 255.255.255.255"
ifconfig_bge0_alias1="inet 192.168.1.152 netmask 255.255.255.255"
What I wonder is:
- What causes the mail that is sent? Is that necessary?
- How do I solve it?
Last edited by a moderator: