killasmurf86 said:Code:# cat < EOF >> [file]/boot/loader.conf[/file] kern.ipc.semmni=40 kern.ipc.semmns=240 kern.ipc.seumr=40 kern.ipc.semmnu=120 EOF # echo 'security.jail.sysvipc_allowed=1' >> [file]/etc/sysctl.conf[/file]
kern.ipc.semmni="40"
kern.ipc.semmni=40
# loader.conf
kern.ipc.semmni="40"
# sysctl.conf
kern.ipc.semmns=240
Jan 20 22:22:08 lexie root: /etc/rc: WARNING: failed to start obspamd
Jan 20 22:22:08 lexie kernel: em0: link state changed to UP
Jan 20 22:22:08 lexie spamlogd: Failed to initialize:
Jan 20 22:22:08 lexie root: /etc/rc: WARNING: failed to start obspamlogd
Jan 20 22:38:38 lexie postfix/smtpd[1741]: connect from mail-qw0-f41.google.com[209.85.216.41]
...
...
Jan 20 22:40:47 lexie spamd[1070]: spamd: clean message (-0.8/4.0) for mailnull:26 in 4.5 seconds, 9631 bytes.
Jan 20 22:40:47 lexie spamd[1070]: spamd: result: . 0 -
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
scantime=4.5,size=9631,user=mailnull,uid=26,required_score=4.0,rhost=localhost,raddr=127.0.0.1,rport=/var/run/SpamAssassin.socket,mid=
<ACDD3496-A5EE-453E-989F-88AF6CBCB99E@gmail.com>,autolearn=unavailable
Jan 20 22:40:47 lexie postfix/pipe[1751]: 308EB3D1BBC: to=<me@mydomain.com>, relay=spamassassin, delay=4.6, delays=0.11/0/0/4.5, dsn=2.0.0,
status=sent (delivered via spamassassin service)
Jan 20 22:40:47 lexie postfix/pickup[1244]: CCEDD3D1BC2: uid=65534 from=<me@gmail.com>
Jan 20 22:40:47 lexie postfix/qmgr[1245]: 308EB3D1BBC: removed
Jan 20 22:40:47 lexie postfix/cleanup[1749]: CCEDD3D1BC2: message-id=<ACDD3496-A5EE-453E-989F-88AF6CBCB99E@gmail.com>
Jan 20 22:40:47 lexie postfix/qmgr[1245]: CCEDD3D1BC2: from=<me@gmail.com>, size=9922, nrcpt=1 (queue active)
Jan 20 22:40:47 lexie clamsmtpd: 10002D: accepted connection from: 192.168.0.121
Jan 20 22:40:47 lexie postfix/smtpd[1741]: connect from localhost[192.168.0.121]
Jan 20 22:40:47 lexie spamd[1069]: prefork: child states: II
Jan 20 22:40:47 lexie postfix/smtpd[1741]: E795F3D1BBC: client=localhost[192.168.0.121]
Jan 20 22:40:48 lexie clamsmtpd: 10002D: from=me@gmail.com, to=me@mydomain.com, status=CLEAN
Jan 20 22:40:48 lexie postfix/smtp[1757]: CCEDD3D1BC2: to=<me@mydomain.com>, relay=192.168.0.121[192.168.0.121]:10025, delay=0.22,
delays=0.01/0/0.1/0.11, dsn=5.4.0, status=bounced (host 192.168.0.121[192.168.0.121] said: 554 5.4.0 Error: too many hops (in reply to end of
DATA command))
Jan 20 22:40:48 lexie postfix/smtpd[1741]: disconnect from localhost[192.168.0.121]
Jan 20 22:40:48 lexie postfix/cleanup[1749]: 103C43D1BBE: message-id=<20110120144048.103C43D1BBE@jjjsoftware.com>
Jan 20 22:40:48 lexie postfix/bounce[1851]: CCEDD3D1BC2: sender non-delivery notification: 103C43D1BBE
Jan 20 22:40:48 lexie postfix/qmgr[1245]: 103C43D1BBE: from=<>, size=11778, nrcpt=1 (queue active)
Jan 20 22:40:48 lexie postfix/qmgr[1245]: CCEDD3D1BC2: removed
Jan 20 22:40:48 lexie postfix/qmgr[1245]: warning: connect to transport private/smtp: Connection refused
Jan 20 22:40:48 lexie postfix/error[1855]: 103C43D1BBE: to=<me@gmail.com>, relay=none, delay=0.03, delays=0/0.02/0/0.01, dsn=4.3.0,
status=deferred (mail transport unavailable)
Jan 20 22:42:11 lexie dovecot: imap-login: Disconnected (no auth attempts): rip=this.is.my.ip, lip=192.168.0.121, TLS handshaking: Disconnected
Jan 20 22:42:11 lexie dovecot: imap-login: Disconnected (no auth attempts): rip=this.is.my.ip, lip=192.168.0.121, TLS handshaking: Disconnected
Jan 20 22:42:12 lexie dovecot: auth(default): new auth connection: pid=1871
Jan 20 22:42:12 lexie dovecot: auth(default): new auth connection: pid=1872
Jan 20 22:42:34 lexie postfix/qmgr[1245]: AE6353D1B96: from=<>, size=11773, nrcpt=1 (queue active)
Jan 20 22:42:34 lexie postfix/qmgr[1245]: warning: connect to transport private/smtp: Connection refused
Jan 20 22:42:34 lexie postfix/qmgr[1245]: AA56C3D1B98: from=<>, size=11789, nrcpt=1 (queue active)
Jan 20 22:42:34 lexie postfix/error[1879]: AE6353D1B96: to=<me@gmail.com>, relay=none, delay=17366, delays=17366/0.04/0/0.01, dsn=4.3.0,
status=deferred (mail transport unavailable)
Jan 20 22:42:34 lexie postfix/error[1880]: AA56C3D1B98: to=<me@gmail.com>, relay=none, delay=17362, delays=17362/0.02/0/0, dsn=4.3.0,
status=deferred (mail transport unavailable)
Jan 20 22:44:11 lexie postfix/anvil[1742]: statistics: max connection rate 1/60s for (smtp:209.85.216.41) at Jan 20 22:38:38
Jan 20 22:44:11 lexie postfix/anvil[1742]: statistics: max connection count 1 for (smtp:209.85.216.41) at Jan 20 22:38:38
Jan 20 22:44:11 lexie postfix/anvil[1742]: statistics: max cache size 1 at Jan 20 22:38:38
egrep '(warning|error|fatal|panic):' /var/log/maillog | more
Jan 20 15:20:19 lexie postfix[30394]: fatal: myhostname and relayhost parameter settings must not be identical: mail.mydomain.com
Jan 20 15:48:02 lexie postfix/sendmail[35019]: fatal: myhostname and relayhost parameter settings must not be identical: mydomain.com
Jan 20 16:10:39 lexie postfix[1131]: fatal: myhostname and relayhost parameter settings must not be identical: mydomain.com
Jan 20 16:17:06 lexie postfix/qmgr[1534]: warning: connect to transport private/smtp: Connection refused
Jan 20 16:17:08 lexie postfix/trivial-rewrite[1535]: warning: do not list domain mydomain.com in BOTH virtual_mailbox_domains and relay_domains
Jan 20 16:17:08 lexie postfix/trivial-rewrite[1535]: warning: do not list domain mydomain.com in BOTH virtual_mailbox_domains and relay_domains
Jan 20 16:26:50 lexie postfix/qmgr[1240]: warning: connect to transport private/smtp: Connection refused
Jan 20 16:40:17 lexie postfix/qmgr[1240]: warning: connect to transport private/smtp: Connection refused
Jan 20 16:53:40 lexie postfix/smtpd[1494]: warning: [i]www.mydomain.com[/i][this.is.my.ip]: SASL PLAIN authentication failed:
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
content_filter = scan:[192.168.0.121]:10025
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
default_privs = nobody
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
local_recipient_maps = $virtual_mailbox_maps
mail_owner = postfix
mail_spool_directory = /var/home/mail
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = localhost.$mydomain, localhost
mydomain = mydomain.com
myhostname = mydomain.com
mynetworks = 192.168.0.0/24, 127.0.0.0/8
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
relay_domains = pgsql:/usr/local/etc/postfix/pgsql_relay_domains.cf
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender,
reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_rbl_client bl.spamcop.net
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_tls_CAfile = /etc/ssl/postfix/smtpd.pem
smtpd_tls_cert_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_key_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = pgsql:/usr/local/etc/postfix/pgsql_virtual_alias_maps.cf
virtual_gid_maps = static:6
virtual_mailbox_base = /mail
virtual_mailbox_domains = pgsql:/usr/local/etc/postfix/pgsql_virtual_mailbox_domains.cf
virtual_mailbox_maps = pgsql:/usr/local/etc/postfix/pgsql_virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:26
dovecot -n
# 1.2.16: /usr/local/etc/dovecot.conf
# OS: FreeBSD 8.1-RELEASE amd64 ufs
protocols: imaps
ssl_cert_file: /etc/ssl/dovecot/cert.pem
ssl_key_file: /etc/ssl/dovecot/key.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
verbose_proctitle: yes
first_valid_uid: 26
last_valid_uid: 26
first_valid_gid: 6
last_valid_gid: 6
mail_privileged_group: mail
mail_uid: mailnull
mail_gid: mail
mail_location: maildir:/mail/%d/%n
mail_plugins: quota imap_quota
imap_client_workarounds: delay-newmail netscape-eoh tb-extra-mailbox-sep
lda:
postmaster_address: postmaster@mydomain.com
mail_plugins: quota
sendmail_path: /usr/sbin/sendmail
auth default:
username_format: %Lu
verbose: yes
debug_passwords: yes
passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: prefetch
socket:
type: listen
client:
path: /var/run/dovecot/auth-client
mode: 432
user: postfix
group: mail
master:
path: /var/run/dovecot/auth-master
mode: 384
user: mailnull
group: mail
plugin:
quota: maildir:User quota
quota_rule: *:storage=1GB
Starting obspamd.
spamd: bind: Can't assign requested address
/etc/rc: WARNING: failed to start obspamd
Starting obspamlogd.
spamlogd: couldn't initialize pcap: Device not configured
/etc/rc.conf: WARNING: failed to start obspamlogd
...
Jan 21 08:29:23 lexie postfix/qmgr[1250]: warning: connect to transport private/smtp: Connection refused
Jan 21 08:29:23 lexie postfix/error[1576]: C528A3D1BC2: to=<me@gmail.com>, relay=none, delay=0.05, delays=0/0.04/0/0.01, dsn=4.3.0,
status=deferred (mail transport unavailable)
Jan 21 22:45:46 lexie postfix/pickup[1235]: 798143D1BCB: uid=65534 from=<me@gmail.com>
Jan 21 22:45:46 lexie postfix/qmgr[1236]: 8652E3D1BC5: removed
Jan 21 22:45:46 lexie postfix/cleanup[1526]: 798143D1BCB: message-id=<971FF512-AAB8-43F2-8413-691189C2F0D2@gmail.com>
Jan 21 22:45:46 lexie postfix/qmgr[1236]: 798143D1BCB: from=<me@gmail.com>, size=9580, nrcpt=1 (queue active)
Jan 21 22:45:46 lexie clamsmtpd: 100015: accepted connection from: 192.168.0.121
Jan 21 22:45:46 lexie postfix/smtpd[1517]: connect from localhost[192.168.0.121]
Jan 21 22:45:46 lexie spamd[1059]: prefork: child states: II
Jan 21 22:45:46 lexie postfix/smtpd[1517]: 942863D1BC5: client=localhost[192.168.0.121]
Jan 21 22:45:46 lexie postfix/cleanup[1526]: 942863D1BC5: message-id=<971FF512-AAB8-43F2-8413-691189C2F0D2@gmail.com>
Jan 21 22:45:46 lexie clamsmtpd: 100015: from=me@gmail.com, to=me@mydomain.com, status=CLEAN
Jan 21 22:45:46 lexie postfix/smtp[1544]: 798143D1BCB: to=<me@mydomain.com>, relay=192.168.0.121[192.168.0.121]:10025, delay=0.22,
delays=0.01/0/0.1/0.11, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 942863D1BC5)
Jan 21 22:45:46 lexie postfix/smtpd[1517]: disconnect from localhost[192.168.0.121]
Jan 21 22:45:46 lexie postfix/qmgr[1236]: 942863D1BC5: from=<me@gmail.com>, size=9807, nrcpt=1 (queue active)
Jan 21 22:45:46 lexie postfix/qmgr[1236]: 798143D1BCB: removed
Jan 21 22:45:46 lexie spamd[1060]: spamd: got connection over /var/run/SpamAssassin.socket
Jan 21 22:45:46 lexie spamd[1060]: spamd: setuid to mailnull succeeded
Jan 21 22:45:46 lexie spamd[1060]: spamd: processing message <971FF512-AAB8-43F2-8413-691189C2F0D2@gmail.com> for mailnull:26
Jan 21 22:45:51 lexie spamd[1060]: spamd: clean message (-0.8/4.0) for mailnull:26 in 5.2 seconds, 9630 bytes.
Jan 21 22:45:51 lexie spamd[1060]: spamd: result: . 0 -
DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
scantime=5.2,size=9630,user=mailnull,uid=26,required_score=4.0,rhost=localhost,raddr=127.0.0.1,rport=/var/run/SpamAssassin.socket,mid=
<971FF512-AAB8-43F2-8413-691189C2F0D2@gmail.com>,autolearn=unavailable
Jan 21 22:45:51 lexie postfix/pipe[1528]: 942863D1BC5: to=<me@mydomain.com>, relay=spamassassin, delay=5.4, delays=0.11/0/0/5.3, dsn=2.0.0,
status=sent (delivered via spamassassin service)
Jan 21 22:45:51 lexie postfix/pickup[1235]: EC5D63D1BCB: uid=65534 from=<me@gmail.com>
Jan 21 22:45:51 lexie postfix/qmgr[1236]: 942863D1BC5: removed
Jan 21 22:45:51 lexie postfix/cleanup[1526]: EC5D63D1BCB: message-id=<971FF512-AAB8-43F2-8413-691189C2F0D2@gmail.com>
Jan 21 22:45:51 lexie postfix/qmgr[1236]: EC5D63D1BCB: from=<me@gmail.com>, size=9922, nrcpt=1 (queue active)
Jan 21 22:45:51 lexie clamsmtpd: 100016: accepted connection from: 192.168.0.121
Jan 21 22:45:51 lexie postfix/smtpd[1545]: connect from localhost[192.168.0.121]
Jan 21 22:45:51 lexie spamd[1059]: prefork: child states: II
Jan 21 22:45:52 lexie postfix/smtpd[1545]: 12C823D1BC5: client=localhost[192.168.0.121]
Jan 21 22:45:52 lexie clamsmtpd: 100016: from=me@gmail.com, to=me@mydomain.com, status=CLEAN
Jan 21 22:45:52 lexie postfix/smtp[1544]: EC5D63D1BCB: to=<me@mydomain.com>, relay=192.168.0.121[192.168.0.121]:10025, delay=0.22,
delays=0.01/0/0.1/0.11, dsn=5.4.0, status=bounced (host 192.168.0.121[192.168.0.121] said: 554 5.4.0 Error: too many hops (in reply to end of
DATA command))
Jan 21 22:45:52 lexie postfix/smtpd[1545]: disconnect from localhost[192.168.0.121]
Jan 21 22:45:52 lexie postfix/cleanup[1526]: 2F8FE3D1BC7: message-id=<20110121144552.2F8FE3D1BC7@jjjsoftware.com>
Jan 21 22:45:52 lexie postfix/bounce[1629]: EC5D63D1BCB: sender non-delivery notification: 2F8FE3D1BC7
Jan 21 22:45:52 lexie postfix/qmgr[1236]: 2F8FE3D1BC7: from=<>, size=11778, nrcpt=1 (queue active)
Jan 21 22:45:52 lexie postfix/qmgr[1236]: EC5D63D1BCB: removed
Jan 21 22:45:52 lexie postfix/qmgr[1236]: warning: connect to transport private/smtp: Connection refused
Jan 21 22:45:52 lexie postfix/error[1632]: 2F8FE3D1BC7: to=<me@gmail.com>, relay=none, delay=0.03, delays=0/0.02/0/0.01, dsn=4.3.0,
status=deferred (mail transport unavailable)
killasmurf86 said:[red]This section should be done on host system, not in jail {at least I did this on host}[/red]
...
enable and configure pf { this one you figure out yourself }
...
buttmanizer said:Can you teach me how to do this? I have not edited my /etc/pf.conf except your instructions for spamd.
...
Jan 24 11:49:43 lexie postfix/cleanup[66420]: 2EEF33D1D1D: message-id=<20110124034801.E5FF83D1BDB@jjjsoftware.com>
Jan 24 11:49:43 lexie postfix/qmgr[25768]: 2EEF33D1D1D: from=<root@jjjsoftware.com>, size=7920, nrcpt=1 (queue active)
Jan 24 11:49:43 lexie clamsmtpd: 10074D: accepted connection from: 192.168.0.121
Jan 24 11:49:43 lexie postfix/smtpd[66431]: connect from localhost[192.168.0.121]
Jan 24 11:49:43 lexie spamd[1059]: prefork: child states: II
Jan 24 11:49:43 lexie postfix/smtpd[66431]: 4988B3D1BD9: client=localhost[192.168.0.121]
Jan 24 11:49:43 lexie postfix/cleanup[66420]: 4988B3D1BD9: message-id=<20110124034801.E5FF83D1BDB@jjjsoftware.com>
Jan 24 11:49:43 lexie clamsmtpd: 10074D: from=root@jjjsoftware.com, to=jovito@jjjsoftware.com, status=CLEAN
Jan 24 11:49:43 lexie postfix/smtp[66430]: 2EEF33D1D1D: to=<jovito@jjjsoftware.com>, relay=192.168.0.121[192.168.0.121]:10025, delay=0.22,
delays=0.01/0/0.1/0.11, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 4988B3D1BD9)
Jan 24 11:49:43 lexie postfix/smtpd[66431]: disconnect from localhost[192.168.0.121]
Jan 24 11:49:43 lexie postfix/qmgr[25768]: 4988B3D1BD9: from=<root@jjjsoftware.com>, size=8147, nrcpt=1 (queue active)
Jan 24 11:49:43 lexie postfix/qmgr[25768]: 2EEF33D1D1D: removed
Jan 24 11:49:43 lexie spamd[51792]: spamd: got connection over /var/run/SpamAssassin.socket
Jan 24 11:49:43 lexie spamd[51792]: spamd: setuid to mailnull succeeded
Jan 24 11:49:43 lexie spamd[51792]: spamd: processing message <20110124034801.E5FF83D1BDB@jjjsoftware.com> for mailnull:26
Jan 24 11:49:47 lexie spamd[51792]: spamd: clean message (-1.0/4.0) for mailnull:26 in 4.5 seconds, 7999 bytes.
Jan 24 11:49:47 lexie spamd[51792]: spamd: result: . -1 - ALL_TRUSTED
scantime=4.5,size=7999,user=mailnull,uid=26,required_score=4.0,rhost=localhost,raddr=127.0.0.1,rport=/var/run/SpamAssassin.socket,mid=
<20110124034801.E5FF83D1BDB@jjjsoftware.com>,autolearn=unavailable
Jan 24 11:49:47 lexie postfix/pickup[66559]: E708E3D1D1D: uid=65534 from=<root@jjjsoftware.com>
Jan 24 11:49:47 lexie postfix/pipe[66538]: 4988B3D1BD9: to=<jovito@jjjsoftware.com>, relay=spamassassin, delay=4.6, delays=0.11/0/0/4.5,
dsn=2.0.0, status=sent (delivered via spamassassin service)
Jan 24 11:49:47 lexie postfix/qmgr[25768]: 4988B3D1BD9: removed
Jan 24 11:49:47 lexie postfix/cleanup[66420]: E708E3D1D1D: message-id=<20110124034801.E5FF83D1BDB@jjjsoftware.com>
Jan 24 11:49:47 lexie postfix/qmgr[25768]: E708E3D1D1D: from=<root@jjjsoftware.com>, size=8262, nrcpt=1 (queue active)
Jan 24 11:49:47 lexie clamsmtpd: 10074E: accepted connection from: 192.168.0.121
Jan 24 11:49:47 lexie postfix/smtpd[66411]: connect from localhost[192.168.0.121]
Jan 24 11:49:47 lexie spamd[1059]: prefork: child states: II
Jan 24 11:49:48 lexie postfix/smtpd[66411]: 0DACD3D1BD9: client=localhost[192.168.0.121]
Jan 24 11:49:48 lexie postfix/cleanup[66420]: 0DACD3D1BD9: message-id=<20110124034801.E5FF83D1BDB@jjjsoftware.com>
Jan 24 11:49:48 lexie clamsmtpd: 10074E: from=root@jjjsoftware.com, to=jovito@jjjsoftware.com, status=CLEAN
Jan 24 11:49:48 lexie postfix/smtp[66430]: E708E3D1D1D: to=<jovito@jjjsoftware.com>, relay=192.168.0.121[192.168.0.121]:10025, delay=0.22,
delays=0.01/0/0.1/0.11, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 0DACD3D1BD9)
Jan 24 11:49:48 lexie postfix/smtpd[66411]: disconnect from localhost[192.168.0.121]
Jan 24 11:49:48 lexie postfix/qmgr[25768]: 0DACD3D1BD9: from=<root@jjjsoftware.com>, size=8489, nrcpt=1 (queue active)
Jan 24 11:49:48 lexie postfix/qmgr[25768]: E708E3D1D1D: removed
Jan 24 11:49:48 lexie spamd[51792]: spamd: got connection over /var/run/SpamAssassin.socket
Jan 24 11:49:48 lexie spamd[51792]: spamd: setuid to mailnull succeeded
Jan 24 11:49:48 lexie spamd[51792]: spamd: processing message <20110124034801.E5FF83D1BDB@jjjsoftware.com> for mailnull:26
Jan 24 11:49:52 lexie spamd[51792]: spamd: clean message (-1.0/4.0) for mailnull:26 in 4.5 seconds, 8335 bytes.
Jan 24 11:49:52 lexie spamd[51792]: spamd: result: . -1 - ALL_TRUSTED
scantime=4.5,size=8335,user=mailnull,uid=26,required_score=4.0,rhost=localhost,raddr=127.0.0.1,rport=/var/run/SpamAssassin.socket,mid=
<20110124034801.E5FF83D1BDB@jjjsoftware.com>,autolearn=unavailable
Jan 24 11:49:52 lexie postfix/pickup[66559]: AF5BB3D1D1D: uid=65534 from=<root@jjjsoftware.com>
Jan 24 11:49:52 lexie postfix/pipe[66423]: 0DACD3D1BD9: to=<jovito@jjjsoftware.com>, relay=spamassassin, delay=4.7, delays=0.11/0/0/4.6,
dsn=2.0.0, status=sent (delivered via spamassassin service)
Jan 24 11:49:52 lexie postfix/cleanup[66420]: AF5BB3D1D1D: message-id=<20110124034801.E5FF83D1BDB@jjjsoftware.com>
Jan 24 11:49:52 lexie postfix/qmgr[25768]: 0DACD3D1BD9: removed
Jan 24 11:49:52 lexie postfix/qmgr[25768]: AF5BB3D1D1D: from=<root@jjjsoftware.com>, size=8604, nrcpt=1 (queue active)
Jan 24 11:49:52 lexie clamsmtpd: 10074F: accepted connection from: 192.168.0.121
Jan 24 11:49:52 lexie postfix/smtpd[66431]: connect from localhost[192.168.0.121]
Jan 24 11:49:52 lexie spamd[1059]: prefork: child states: II
Jan 24 11:49:52 lexie postfix/smtpd[66431]: CA0473D1BD9: client=localhost[192.168.0.121]
Jan 24 11:49:52 lexie postfix/cleanup[66420]: CA0473D1BD9: message-id=<20110124034801.E5FF83D1BDB@jjjsoftware.com>
Jan 24 11:49:52 lexie clamsmtpd: 10074F: from=root@jjjsoftware.com, to=jovito@jjjsoftware.com, status=CLEAN
Jan 24 11:49:52 lexie postfix/smtp[66430]: AF5BB3D1D1D: to=<jovito@jjjsoftware.com>, relay=192.168.0.121[192.168.0.121]:10025, delay=0.22,
delays=0.01/0/0.1/0.11, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as CA0473D1BD9)
Jan 24 11:49:52 lexie postfix/smtpd[66431]: disconnect from localhost[192.168.0.121]
Jan 24 11:49:52 lexie postfix/qmgr[25768]: CA0473D1BD9: from=<root@jjjsoftware.com>, size=8831, nrcpt=1 (queue active)
Jan 24 11:49:52 lexie postfix/qmgr[25768]: AF5BB3D1D1D: removed
Jan 24 11:49:52 lexie spamd[51792]: spamd: got connection over /var/run/SpamAssassin.socket
Jan 24 11:49:52 lexie spamd[51792]: spamd: setuid to mailnull succeeded
Jan 24 11:49:52 lexie spamd[51792]: spamd: processing message <20110124034801.E5FF83D1BDB@jjjsoftware.com> for mailnull:26
Jan 24 11:49:57 lexie spamd[51792]: spamd: clean message (-1.0/4.0) for mailnull:26 in 4.5 seconds, 8671 bytes.
Jan 24 11:49:57 lexie spamd[51792]: spamd: result: . -1 - ALL_TRUSTED
scantime=4.5,size=8671,user=mailnull,uid=26,required_score=4.0,rhost=localhost,raddr=127.0.0.1,rport=/var/run/SpamAssassin.socket,mid=
<20110124034801.E5FF83D1BDB@jjjsoftware.com>,autolearn=unavailable
Jan 24 11:49:57 lexie postfix/pickup[66559]: 735443D1D1D: uid=65534 from=<root@jjjsoftware.com>
Jan 24 11:49:57 lexie postfix/cleanup[66420]: 735443D1D1D: message-id=<20110124034801.E5FF83D1BDB@jjjsoftware.com>
Jan 24 11:49:57 lexie postfix/pipe[66538]: CA0473D1BD9: to=<jovito@jjjsoftware.com>, relay=spamassassin, delay=4.6, delays=0.11/0/0/4.5,
dsn=2.0.0, status=sent (delivered via spamassassin service)
Jan 24 11:49:57 lexie postfix/qmgr[25768]: CA0473D1BD9: removed
Jan 24 11:49:57 lexie postfix/qmgr[25768]: 735443D1D1D: from=<root@jjjsoftware.com>, size=8946, nrcpt=1 (queue active)
Jan 24 11:49:57 lexie clamsmtpd: 100750: accepted connection from: 192.168.0.121
Jan 24 11:49:57 lexie postfix/smtpd[66411]: connect from localhost[192.168.0.121]
Jan 24 11:49:57 lexie spamd[1059]: prefork: child states: II
Jan 24 11:49:57 lexie postfix/smtpd[66411]: 8DF633D1BD9: client=localhost[192.168.0.121]
Jan 24 11:49:57 lexie clamsmtpd: 100750: from=root@jjjsoftware.com, to=jovito@jjjsoftware.com, status=CLEAN
Jan 24 11:49:57 lexie postfix/smtp[66430]: 735443D1D1D: to=<jovito@jjjsoftware.com>, relay=192.168.0.121[192.168.0.121]:10025, delay=0.22,
delays=0.01/0/0.1/0.11, dsn=5.4.0, status=bounced (host 192.168.0.121[192.168.0.121] said: 554 5.4.0 Error: too many hops (in reply to end of DATA command))
Jan 24 11:49:57 lexie postfix/smtpd[66411]: disconnect from localhost[192.168.0.121]
Jan 24 11:49:57 lexie postfix/cleanup[66420]: A8E273D1C48: message-id=<20110124034957.A8E273D1C48@jjjsoftware.com>
Jan 24 11:49:57 lexie postfix/bounce[66593]: 735443D1D1D: sender non-delivery notification: A8E273D1C48
Jan 24 11:49:57 lexie postfix/qmgr[25768]: A8E273D1C48: from=<>, size=10799, nrcpt=1 (queue active)
Jan 24 11:49:57 lexie postfix/qmgr[25768]: 735443D1D1D: removed
Jan 24 11:49:57 lexie dovecot: auth(default): master in: USER 1 jovito@jjjsoftware.com service=deliver
Jan 24 11:49:57 lexie dovecot: auth(default): prefetch(jovito@jjjsoftware.com): userdb lookup not possible with only userdb prefetch
Jan 24 11:49:57 lexie dovecot: auth(default): master out: NOTFOUND 1
Jan 24 11:49:57 lexie postfix/pipe[66706]: A8E273D1C48: to=<jovito@jjjsoftware.com>, orig_to=<root@jjjsoftware.com>, relay=dovecot, delay=0.05,
delays=0/0.03/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Jan 24 11:49:57 lexie postfix/qmgr[25768]: A8E273D1C48: removed
Jan 24 11:53:20 lexie postfix/anvil[66412]: statistics: max connection rate 1/60s for (smtp:74.125.83.41) at Jan 24 11:46:35
Jan 24 11:53:20 lexie postfix/anvil[66412]: statistics: max connection count 1 for (smtp:74.125.83.41) at Jan 24 11:46:35
Jan 24 11:53:20 lexie postfix/anvil[66412]: statistics: max cache size 1 at Jan 24 11:46:35
Jan 24 11:55:30 lexie postfix/qmgr[25768]: 6FFC33D1BDB: from=<>, size=11778, nrcpt=1 (queue active)
Jan 24 11:55:30 lexie postfix/qmgr[25768]: warning: connect to transport private/smtp: Connection refused
Jan 24 11:55:30 lexie postfix/error[66813]: 6FFC33D1BDB: to=<buttmanizer@gmail.com>, relay=none, delay=421, delays=421/0.03/0/0.01, dsn=4.3.0,
status=deferred (mail transport unavailable)
...
2011-01-24 20:49:56.669 PHT,"postfix","maildb",5969,"192.168.0.121:57347",4d3d7574.1751,2,"",2011-01-24 20:49:56
PHT,5/1517,0,LOG,00000,"connection authorized: user=postfix database=maildb",,,,,,,,,""
...
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
content_filter = scan:[192.168.0.121]:10025
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
default_privs = nobody
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
local_recipient_maps = $virtual_mailbox_maps
mail_owner = postfix
mail_spool_directory = /var/home/mail
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = localhost.$mydomain, localhost
mydomain = jjjsoftware.com
myhostname = jjjsoftware.com
mynetworks = 192.168.0.0/24, 127.0.0.0/8
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender,
reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_rbl_client bl.spamcop.net
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_tls_CAfile = /etc/ssl/postfix/smtpd.pem
smtpd_tls_cert_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_key_file = /etc/ssl/postfix/smtpd.pem
smtpd_tls_loglevel = 0
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = pgsql:/usr/local/etc/postfix/pgsql_virtual_alias_maps.cf
virtual_gid_maps = static:6
virtual_mailbox_base = /mail
virtual_mailbox_domains = pgsql:/usr/local/etc/postfix/pgsql_virtual_mailbox_domains.cf
virtual_mailbox_maps = pgsql:/usr/local/etc/postfix/pgsql_virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:26
user = postfix
password = xxx
hosts = lexie
dbname = maildb
query = SELECT dest_username || '@' || dest_domain FROM mailbox_aliases WHERE address = '%s' AND active = true
query = SELECT domain FROM mailbox WHERE domain = '%s' AND active = true
query = SELECT domain || '/' || username FROM mailbox WHERE username = '%u' AND domain = '%d' AND active = true
maildb=# \dS+ mailbox
Table "public.mailbox"
Column | Type | Modifiers | Storage | Description
----------+------------------------+-----------------------+----------+-------------
username | character varying(128) | not null | extended |
domain | character varying(128) | not null | extended |
password | character varying(32) | not null | extended |
quota | integer | not null default 1024 | plain |
active | boolean | not null default true | plain |
Indexes:
"mailbox_pkey" PRIMARY KEY, btree (username, domain)
Referenced by:
TABLE "mailbox_aliases" CONSTRAINT "mailbox_aliases_dest_username_fkey" FOREIGN KEY (dest_username, dest_domain) REFERENCES
mailbox(username, domain) ON DELETE CASCADE
Has OIDs: no
maildb=# \dS+ mailbox_aliases
Table "public.mailbox_aliases"
Column | Type | Modifiers | Storage | Description
---------------+------------------------+-----------------------+----------+-------------
address | character varying(256) | not null | extended |
dest_username | character varying(128) | not null | extended |
dest_domain | character varying(128) | not null | extended |
active | boolean | not null default true | plain |
Indexes:
"mailbox_aliases_pkey" PRIMARY KEY, btree (address)
Foreign-key constraints:
"mailbox_aliases_dest_username_fkey" FOREIGN KEY (dest_username, dest_domain) REFERENCES mailbox(username, domain) ON DELETE CASCADE
Has OIDs: no
maildb=# \dS+ mailbox_relay_domains
Table "public.mailbox_relay_domains"
Column | Type | Modifiers | Storage | Description
--------+------------------------+-----------------------+----------+-------------
domain | character varying(256) | not null | extended |
active | boolean | not null default true | plain |
Indexes:
"mailbox_relay_domains_pkey" PRIMARY KEY, btree (domain)
Has OIDs: no
# IPv4 local connections:
...
local maildb dovecot,postfix md5
...
hostname="lexie"
ifconfig_em0="DHCP"
keymap="us.iso"
sshd_enable="YES"
linux_enable="YES"
dbus_enable="YES"
hald_enable="YES"
polkitd_enable="YES"
#PostgreSQL
postgresql_enable="YES"
postgresql_data="/mnt/data/pg_data"
postgresql_flags="-w -s -m fast"
postgresql_initdb_flags="--encoding=utf-8 --lc-collate=C"
postgresql_class="postgres"
postgresql_user="postgres"
vboxnet_enable="YES"
apache22_enable="YES"
#Printer Settings
cupsd_enable="YES"
devfs_system_ruleset="system"
#Firewall Settings
#firewall_enable="YES"
#firewall_logging="YES"
#firewall_type="/etc/ipfw2.conf"
pf_enable="YES"
pflog_enable="YES"
#Email Settings
dovecot_enable="YES"
postfix_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
#Spamd
#obspamlogd_enable="YES"
#obspamd_enable="YES"
#obspamd_flags="-l 192.168.0.121 -h jjjsoftware.com"
#Clamav
clamsmtpd_enable="YES"
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"
clamav_freshclam_flags="--quiet -a 192.168.0.121 -c 24"
#SpamAssassin
spamd_enable="YES"
spamd_flags="-c --socketpath=/var/run/SpamAssassin.socket"
bsdstats_enable="YES"
SELECT dest_username || '@' || dest_domain FROM mailbox_aliases WHERE address = '%s' AND active = true;
SELECT domain FROM mailbox WHERE domain = '%s' AND active = true;
2011-01-25 00:25:08.765 PHT,"postfix","maildb",10408,"192.168.0.121:31464",4d3da7e4.28a8,4,"",2011-01-25 00:25:08
PHT,8/17,0,LOG,00000,"statement: SELECT domain FROM mailbox WHERE domain = 'jjjsoftware.com' AND active = true",,,,,,,,,""
2011-01-25 00:27:34.824 PHT,"dovecot","maildb",10175,"192.168.0.121:50699",4d3da73c.27bf,6,"",2011-01-25 00:22:20
PHT,2/5,0,LOG,00000,"statement: SELECT username, domain, password, '*:bytes=' || quota || 'M' AS userdb_quota_rule FROM mailbox WHERE username
= 'jovito' AND domain = 'jjjsoftware.com' AND active = true",,,,,,,,,""
lexie# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
32DE43D1A40* 8680 Tue Jan 25 00:24:59 jovito@jjjsoftware.com
buttmanizer@gmail.com
-- 9 Kbytes in 1 Request.
lexie# mailq
Mail queue is empty
...
...
Jan 25 00:25:08 lexie postfix/pickup[10256]: B133B3D1A43: uid=65534 from=<jovito@jjjsoftware.com>
Jan 25 00:25:08 lexie postfix/pipe[10280]: EB5CC3D1A40: to=<buttmanizer@gmail.com>, relay=spamassassin, delay=4.8, delays=0.11/0/0/4.7,
dsn=2.0.0, status=sent (delivered via spamassassin service)
Jan 25 00:25:08 lexie postfix/qmgr[10257]: EB5CC3D1A40: removed
Jan 25 00:25:08 lexie postfix/cleanup[10278]: B133B3D1A43: message-id=<20FA642C-10C0-4979-A12C-F57769D7BEFC@jjjsoftware.com>
Jan 25 00:25:08 lexie postfix/cleanup[10278]: B133B3D1A43: to=<buttmanizer@gmail.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.0,
status=bounced (too many hops)
Jan 25 00:25:08 lexie postfix/cleanup[10405]: B5C083D1ABA: message-id=<20110124162508.B5C083D1ABA@jjjsoftware.com>
Jan 25 00:25:08 lexie postfix/bounce[10404]: B133B3D1A43: sender non-delivery notification: B5C083D1ABA
Jan 25 00:25:08 lexie postfix/qmgr[10257]: B5C083D1ABA: from=<>, size=10853, nrcpt=1 (queue active)
Jan 25 00:25:08 lexie spamd[1059]: prefork: child states: II
Jan 25 00:25:08 lexie dovecot: auth(default): master in: USER 1 jovito@jjjsoftware.com service=deliver
Jan 25 00:25:08 lexie dovecot: auth(default): prefetch(jovito@jjjsoftware.com): userdb lookup not possible with only userdb prefetch
Jan 25 00:25:08 lexie dovecot: auth(default): master out: NOTFOUND 1
Jan 25 00:25:08 lexie postfix/pipe[10409]: B5C083D1ABA: to=<jovito@jjjsoftware.com>, relay=dovecot, delay=0.04, delays=0.02/0.02/0/0,
dsn=5.1.1, status=bounced (user unknown)
Jan 25 00:25:08 lexie postfix/qmgr[10257]: B5C083D1ABA: removed
Jan 25 00:27:34 lexie dovecot: auth(default): client in: AUTH 1 PLAIN service=imap secured lip=192.168.0.121
rip=112.201.119.168 lport=993 rport=48842 resp=AGpvdml0b0Bqampzb2Z0d2FyZS5jb20AZGFyY2luX2NvbGU=
Jan 25 00:27:34 lexie dovecot: auth(default): sql(jovito@jjjsoftware.com,112.201.119.168): query: SELECT username, domain, password, '*:bytes='
|| quota || 'M' AS userdb_quota_rule FROM mailbox WHERE username = 'jovito' AND domain = 'jjjsoftware.com' AND active = true
Jan 25 00:27:34 lexie dovecot: auth(default): client out: OK 1 user=jovito@jjjsoftware.com
Jan 25 00:27:34 lexie dovecot: auth(default): master in: REQUEST 3 10263 1
Jan 25 00:27:34 lexie dovecot: auth(default): prefetch(jovito@jjjsoftware.com,112.201.119.168): success
Jan 25 00:27:34 lexie dovecot: auth(default): master out: USER 3 jovito@jjjsoftware.com quota_rule=*:bytes=1024M
Jan 25 00:27:34 lexie dovecot: imap-login: Login: user=<jovito@jjjsoftware.com>, method=PLAIN, rip=112.201.119.168, lip=192.168.0.121, TLS
Jan 25 00:27:35 lexie dovecot: auth(default): new auth connection: pid=10436
Jan 25 00:50:16 lexie dovecot: imap-login: Login: user=<jovito@jjjsoftware.com>, method=PLAIN, rip=112.201.119.168, lip=192.168.0.121, TLS
Jan 25 00:50:17 lexie dovecot: auth(default): new auth connection: pid=10754
Jan 25 00:52:53 lexie postfix/smtpd[10789]: connect from mail-gx0-f169.google.com[209.85.161.169]
Jan 25 00:52:53 lexie dovecot: auth(default): new auth connection: pid=10789
Jan 25 00:52:56 lexie postfix/smtpd[10789]: NOQUEUE: reject: RCPT from mail-gx0-f169.google.com[209.85.161.169]: 554 5.7.1 Service unavailable;
Client host [209.85.161.169] blocked using bl.spamcop.net; Blocked - see http://www.spamcop.net/bl.shtml?209.85.161.169; from=
<buttmanizer@gmail.com> to=<jovito@jjjsoftware.com> proto=ESMTP helo=<mail-gx0-f169.google.com>
Jan 25 00:52:57 lexie postfix/smtpd[10789]: disconnect from mail-gx0-f169.google.com[209.85.161.169]
relay_domains = $mydestination
Jan 25 01:33:30 lexie postfix/pickup[1274]: 0E1913D1A42: uid=65534 from=<aldis@bsdroot.lv>
Jan 25 01:33:30 lexie postfix/qmgr[1275]: 5DE703D1A3B: removed
Jan 25 01:33:30 lexie postfix/cleanup[1742]: 0E1913D1A42: message-id=<20110124173132.E25B63D1A42@jjjsoftware.com>
Jan 25 01:33:30 lexie postfix/cleanup[1742]: 0E1913D1A42: to=<jovito@jjjsoftware.com>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.0,
status=bounced (too many hops)
Jan 25 01:33:30 lexie postfix/cleanup[1866]: 120843D1A43: message-id=<20110124173330.120843D1A43@jjjsoftware.com>
Jan 25 01:33:30 lexie postfix/bounce[1865]: 0E1913D1A42: sender non-delivery notification: 120843D1A43
Jan 25 01:33:30 lexie postfix/qmgr[1275]: 120843D1A43: from=<>, size=12308, nrcpt=1 (queue active)
Jan 25 01:33:30 lexie spamd[1098]: prefork: child states: II
Jan 25 01:33:46 lexie postfix/anvil[1573]: statistics: max connection rate 1/60s for (smtp:112.201.119.168) at Jan 25 01:23:44
Jan 25 01:33:46 lexie postfix/anvil[1573]: statistics: max connection count 1 for (smtp:112.201.119.168) at Jan 25 01:23:44
Jan 25 01:33:46 lexie postfix/anvil[1573]: statistics: max cache size 2 at Jan 25 01:28:51
Jan 25 01:34:00 lexie postfix/smtp[1870]: connect to mx.bsdroot.lv[83.241.11.155]:25: Operation timed out
Jan 25 01:34:00 lexie postfix/smtp[1870]: 120843D1A43: to=<aldis@bsdroot.lv>, relay=none, delay=31, delays=0.02/0.02/31/0, dsn=4.4.1,
status=deferred (connect to mx.bsdroot.lv[83.241.11.155]:25: Operation timed out)
Validation results
canonical address: <jovito@jjjsoftware.com>
MX records
preference exchange IP address (if included)
10 mail.jjjsoftware.com [112.201.119.168]
SMTP session
[Contacting mail.jjjsoftware.com [112.201.119.168]...]
[Connected]
220 jjjsoftware.com ESMTP Postfix (2.7.2)
EHLO Network-Tools.com
250-jjjsoftware.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN
250-AUTH=PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
VRFY jovito
504 5.5.2 <jovito>: Recipient address rejected: need fully-qualified address
RSET
250 2.0.0 Ok
EXPN jovito
502 5.5.2 Error: command not recognized
RSET
250 2.0.0 Ok
MAIL FROM:<admin@Network-Tools.com>
250 2.1.0 Ok
RCPT TO:<jovito@jjjsoftware.com>
250 2.1.5 Ok
RSET
250 2.0.0 Ok
QUIT
221 2.0.0 Bye
[Connection closed]