Quoting Wietse Venema <[email protected]>:

Dave Stevens:
I suspected a compromised wordpress install and ran updates on every
aspect of wordpress that I can think of. I have no reason now to think
that WP is responsible for the ongoing spamming. I don't have any more
good ideas,a dn am reproducing below the postscript portion of
logwatch I ran just now, hoping someone will see more in it than I do.
Ideas about this much appreciated, those of my users who use email
really need it.

Allow me to repeat the mailing list welcome message.

        Wietse

TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail

TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html

Thank you for using Postfix.



OK, thanks. Reading from the report url above seems to tell me where the config files are but not the log files. Anyway some of the other reporting info is as follows, postfinger first:

postfinger - postfix configuration on Sat Oct 10 15:07:10 PDT 2015
version: 1.30

Warning: postfinger output may show private configuration information,
such as ip addresses and/or domain names which you do not want to show
to the public.  If this is the case it is your responsibility to modify
the output to hide this private information.  [Remove this warning with
the --nowarn option.]

--System Parameters--
mail_version = 2.11.0
hostname = bulkley
uname = Linux bulkley 3.16.0-50-generic #67~14.04.1-Ubuntu SMP Fri Oct 2 22:07:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

--Packaging information--
looks like this postfix comes from deb package: postfix-2.11.0-1ubuntu1

--main.cf non-default parameters--
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = bulkley.bvserver.ca, localhost.bvserver.ca, , localhost
myhostname = bulkley.bvserver.ca
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
sender_bcc_maps = hash:/etc/postfix/bcc
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
virtual_alias_maps = hash:/etc/postfix/virtual

--master.cf--
smtp    inet    n       -       -       -       -       smtpd -o 
smtpd_sasl_auth_enable=yes
pickup    unix  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
submission      inet    n       -       -       -       -       smtpd -o 
smtpd_sasl_auth_enable=yes

-- end of postfinger output --
root@bulkley:~#


There's also a suggestion to post a log file as an example, but
root@bulkley:/var/log# ll -h mail.*
-rw-r----- 1 syslog adm   92 Oct 10 14:30 mail.err
-rw-r----- 1 syslog adm  312 Oct  9 14:15 mail.err.1
-rw-r----- 1 syslog adm  398 Jul 30 02:40 mail.err.2.gz
-rw-r----- 1 syslog adm  781 Jul 27 02:40 mail.err.3.gz
-rw-r----- 1 syslog adm  700 Jul 19 02:40 mail.err.4.gz
-rw-r----- 1 syslog adm 2.1G Oct 10 14:30 mail.log
-rw-r----- 1 syslog adm 2.0G Oct  4 06:49 mail.log.1
-rw-r----- 1 syslog adm  51M Sep 28 06:49 mail.log.2.gz
-rw-r----- 1 syslnd adm 262K Sep 20 06:42 mail.log.3.gz
-rw-r----- 1 syslog adm 163K Sep 13 06:30 mail.log.4.gz

so the logfiles are intractably large, here's head and tail of mail.log

root@bulkley:/var/log# head mail.log
Oct 4 06:49:14 bulkley postfix/smtp[976]: connect to smtpin2.three.com.au[202.124.68.52]:25: Connection timed out Oct 4 06:49:14 bulkley postfix/smtp[976]: 2F684228B098: to=<[email protected]>, relay=none, delay=55105, delays=55075/0.1/30/0, dsn=4.4.1, status=deferred (connect to smtpin2.three.com.au[202.124.68.52]:25: Connection timed out) Oct 4 06:49:22 bulkley postfix/smtp[980]: connect to cluster4.us.messagelabs.com[216.82.242.179]:25: Connection timed out Oct 4 06:49:23 bulkley postfix/smtp[980]: BBCC72286338: to=<[email protected]>, relay=cluster4.us.messagelabs.com[216.82.241.211]:25, delay=32, delays=0.26/0/32/0.2, dsn=5.0.0, status=bounced (host cluster4.us.messagelabs.com[216.82.241.211] said: 550 Invalid recipient <[email protected]> (#5.1.1) (in reply to RCPT TO command))
Oct  4 06:49:23 bulkley postfix/qmgr[1945]: BBCC72286338: removed
Oct  4 06:49:27 bulkley postfix/pickup[1097]: 6A5F8228176B: uid=0 from=<root>
Oct 4 06:49:27 bulkley postfix/cleanup[1002]: 6A5F8228176B: message-id=<[email protected]> Oct 4 06:49:27 bulkley postfix/qmgr[1945]: 6A5F8228176B: from=<[email protected]>, size=2207, nrcpt=1 (queue active) Oct 4 06:49:27 bulkley postfix/local[2118]: 6A5F8228176B: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.2, delays=0.12/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Oct  4 06:49:27 bulkley postfix/qmgr[1945]: 6A5F8228176B: removed
root@bulkley:/var/log#

and

root@bulkley:/var/log# tail mail.log
Oct 9 16:04:20 bulkley postfix/error[26803]: 13E6D2283B87: to=<[email protected]>, relay=none, delay=0.09, delays=0.03/0/0/0.06, dsn=5.1.1, status=bounced (User unknown in virtual alias table) Oct 9 16:04:20 bulkley postfix/pickup[26704]: 2A3B72281601: uid=1019 from=<[email protected]> Oct 9 16:04:20 bulkley postfix/cleanup[26801]: 2A3B72281601: message-id=<[email protected]> Oct 9 16:04:20 bulkley postfix/qmgr[26705]: 2A3B72281601: from=<[email protected]>, size=1434, nrcpt=1 (queue active)
Oct  9 16:04:20 bulkley postfix/qmgr[26705]: 13E6D2283B87: removed
Oct  9 16:04:20 bulkley postfix/qmgr[26705]: 143852283B8C: removed
Oct 9 16:04:20 bulkley postfix/postfix-script[26876]: stopping the Postfix mail system
Oct  9 16:04:20 bulkley postfix/master[26703]: terminating on signal 15
Oct 9 19:31:13 bulkley dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=141.212.122.112, lip=10.10.254.240, TLS: Disconnected, session=<5OnW47YhWgCN1Hpw> Oct 10 14:30:52 bulkley postfix[29487]: fatal: usage: postfix [-c config_dir] [-Dv] command

and

root@bulkley:/var/log# cat mail.err
Oct 10 14:30:52 bulkley postfix[29487]: fatal: usage: postfix [-c config_dir] [-Dv] command
root@bulkley:/var/log#

and

root@bulkley:/var/log# cat mail.err.1
Oct 9 14:06:24 bulkley postfix/postfix-script[5595]: fatal: the Postfix mail system is already running Oct 9 14:15:19 bulkley postfix/postfix-script[2761]: fatal: the Postfix mail system is already running Oct 9 14:15:32 bulkley postfix/postfix-script[2806]: fatal: the Postfix mail system is already running

And

root@bulkley:/var/log# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = bulkley.bvserver.ca, localhost.bvserver.ca, , localhost
myhostname = bulkley.bvserver.ca
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
sender_bcc_maps = hash:/etc/postfix/bcc
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
root@bulkley:/var/log#

If there's more or more specific information I can provide please specify.

Dave




--
"As long as politics is the shadow cast on society by big business,
the attenuation of the shadow will not change the substance."

-- John Dewey





Reply via email to