[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postfix can't send and receive mails



On Tue, 11 Nov 2008 00:38:55 +0800 (CST)
Stephen Liu <satimis@yahoo.com> wrote:

> 
> --- tôba <toba@tsepa.net> wrote:
> 
> - snip -
> 
> > > 
> > > # find / -name amavisd-new
> > > /usr/share/doc/amavisd-new
> > > /usr/share/lintian/overrides/amavisd-new
> > > /usr/sbin/amavisd-new
> > > /etc/cron.daily/amavisd-new
> > > /etc/cron.d/amavisd-new
> > > /etc/logcheck/ignore.d.workstation/amavisd-new
> > > /etc/logcheck/ignore.d.server/amavisd-new
> > > 
> > > 
> > > # /etc/cron.daily/amavisd-new stop
> > > bayes: expire_old_tokens: locker: safe_lock: cannot create tmp
> > > lockfile /etc/spamassassin/bayes.lock.xen05.satimis.com.3110 for
> > > /etc/spamassassin/bayes.lock: Permission denied
> > > 
> > > 
> > > # /etc/cron.daily/amavisd-new start
> > > bayes: expire_old_tokens: locker: safe_lock: cannot create tmp
> > > lockfile /etc/spamassassin/bayes.lock.xen05.satimis.com.3116 for
> > > /etc/spamassassin/bayes.lock: Permission denied
> > > 
> > > 
> > > # /etc/cron.d/amavisd-new stop
> > > -bash: /etc/cron.d/amavisd-new: Permission denied
> > > 
> > > # /etc/cron.d/amavisd-new start
> > > -bash: /etc/cron.d/amavisd-new: Permission denied
> > > 
> > > 
> > > How can I proceed further?  TIA
> > 
> > 
> > Try  /etc/init.d/amavis instead.
> > 
> > If you do dpkg -L amavis, you can see the list of files in the
> > package.
> 
> 
> 
> Hi Tôba
> 
> 
> Further to my late posting.
> 
> 
> After running;
> 
> # cd /var/lib/amavis/
> 
> # chown virtual:virtual db
> 
> # ls -l
> total 12
> drwxr-xr-x 2 virtual virtual 4096 2008-11-08 05:52 db
> drwxr-xr-x 2 virtual virtual 4096 2008-11-07 11:06 tmp
> drwxr-xr-x 2 virtual virtual 4096 2008-11-07 11:06 virusmails
> 
> 
> Mail can be sent via telnet.
> 
> 
> # tail /var/log/mail.log
> Nov 10 16:25:42 xen05 postfix/qmgr[2746]: A360C782F4:
> from=<satimis@satimis.com>, size=791, nrcpt=1 (queue active)
> Nov 10 16:25:42 xen05 postfix/smtpd[2884]: disconnect from
> localhost.localdomain[127.0.0.1]
> Nov 10 16:25:42 xen05 amavis[2417]: (02417-02) FWD via SMTP:
> <satimis@satimis.com> -> <satimisliu@gmail.com>, 250 2.6.0 Ok,
> id=02417-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
> A360C782F4
> Nov 10 16:25:42 xen05 amavis[2417]: (02417-02) Passed CLEAN, LOCAL
> [127.0.0.1] [127.0.0.1] <satimis@satimis.com> ->
> <satimisliu@gmail.com>, Message-ID:
> <20081110162451.039AE7829B@xen05.satimis.com>, mail_id: pmhX0KqR3luj,
> Hits: -, queued_as: A360C782F4, 594 ms
> Nov 10 16:25:42 xen05 amavis[2417]: (02417-02) TIMING [total 606 ms] -
> SMTP EHLO: 121 (20%)20, SMTP pre-MAIL: 1 (0%)20, SMTP pre-DATA-flush:
> 13 (2%)22, SMTP DATA: 19 (3%)26, body_digest: 5 (1%)26, gen_mail_id:
> 99 (16%)43, mime_decode: 35 (6%)49, get-file-type1: 38 (6%)55,
> decompose_part: 2 (0%)55, parts_decode: 0 (0%)55, update_cache: 13
> (2%)57, decide_mail_destiny: 1 (0%)57, fwd-connect: 62 (10%)68,
> fwd-mail-from: 16 (3%)70, fwd-rcpt-to: 114 (19%)89, fwd-data-cmd: 1
> (0%)89, write-header: 1 (0%)90, fwd-data-contents: 1 (0%)90,
> fwd-data-end: 32 (5%)95, fwd-rundown: 2 (0%)95, prepare-dsn: 2 (0%)96,
> main_log_entry: 15 (3%)98, update_snmp: 5 (1%)99, unlink-1-files: 3
> (1%)100, rundown: 2 (0%)100
> Nov 10 16:25:42 xen05 postfix/smtp[2882]: 039AE7829B:
> to=<satimisliu@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=74,
> delays=73/0.01/0.27/0.49, dsn=2.6.0, status=sent (250 2.6.0 Ok,
> id=02417-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
> A360C782F4)
> Nov 10 16:25:42 xen05 postfix/qmgr[2746]: 039AE7829B: removed
> Nov 10 16:25:43 xen05 postfix/smtpd[2879]: disconnect from
> localhost.localdomain[127.0.0.1]
> Nov 10 16:25:43 xen05 postfix/smtp[2885]: A360C782F4:
> to=<satimisliu@gmail.com>,
> relay=gmail-smtp-in.l.google.com[209.85.143.27]:25, delay=1.3,
> delays=0.15/0.05/0.26/0.83, dsn=2.0.0, status=sent (250 2.0.0 OK
> 1226334083 i9si1521562tid.9)
> Nov 10 16:25:43 xen05 postfix/qmgr[2746]: A360C782F4: removed
> 
> 
> But mail sent on Gmail to satimis@satimis.com has been rejected.  
> 
> 
> # tail /var/log/mail.log
> Nov 10 16:35:16 xen05 postfix/cleanup[2898]: 490F07829B:
> message-id=<20081110151802.C6E94782F5@xen05.satimis.com>
> Nov 10 16:35:16 xen05 postfix/smtpd[2896]: disconnect from
> localhost.localdomain[127.0.0.1]
> Nov 10 16:35:16 xen05 amavis[2418]: (02418-03) FWD via SMTP:
> <amavis@xen05.satimis.com> -> <amavis@xen05.satimis.com>, 250 2.6.0
> Ok, id=02418-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
> 490F07829B
> Nov 10 16:35:16 xen05 postfix/qmgr[2746]: 490F07829B:
> from=<amavis@xen05.satimis.com>, size=1176, nrcpt=1 (queue active)
> Nov 10 16:35:16 xen05 amavis[2418]: (02418-03) Passed CLEAN,
> <amavis@xen05.satimis.com> -> <amavis@xen05.satimis.com>, Message-ID:
> <20081110151802.C6E94782F5@xen05.satimis.com>, mail_id: FDLLpb2+oHHy,
> Hits: -, queued_as: 490F07829B, 495 ms
> Nov 10 16:35:16 xen05 amavis[2418]: (02418-03) TIMING [total 506 ms] -
> SMTP EHLO: 19 (4%)4, SMTP pre-MAIL: 1 (0%)4, SMTP pre-DATA-flush: 8
> (2%)5, SMTP DATA: 28 (6%)11, body_digest: 7 (1%)13, gen_mail_id: 2
> (0%)13, mime_decode: 37 (7%)20, get-file-type1: 42 (8%)28,
> decompose_part: 2 (0%)29, parts_decode: 0 (0%)29, update_cache: 13
> (3%)31, decide_mail_destiny: 1 (0%)31, fwd-connect: 180 (36%)67,
> fwd-mail-from: 67 (13%)80, fwd-rcpt-to: 24 (5%)85, fwd-data-cmd: 1
> (0%)85, write-header: 1 (0%)86, fwd-data-contents: 0 (0%)86,
> fwd-data-end: 33 (7%)92, fwd-rundown: 1 (0%)93, prepare-dsn: 7 (1%)94,
> main_log_entry: 20 (4%)98, update_snmp: 7 (1%)99, unlink-1-files: 3
> (1%)100, rundown: 1 (0%)100
> Nov 10 16:35:16 xen05 postfix/smtp[2894]: C6E94782F5:
> to=<amavis@xen05.satimis.com>, orig_to=<amavis>,
> relay=127.0.0.1[127.0.0.1]:10024, delay=4634,
> delays=4633/0.01/0.03/0.49, dsn=2.6.0, status=sent (250 2.6.0 Ok,
> id=02418-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
> 490F07829B)
> Nov 10 16:35:16 xen05 postfix/qmgr[2746]: C6E94782F5: removed
> Nov 10 16:35:16 xen05 postfix/local[2899]: 490F07829B:
> to=<root@xen05.satimis.com>, orig_to=<amavis@xen05.satimis.com>,
> relay=local, delay=0.13, delays=0.07/0.05/0/0, dsn=2.0.0, status=sent
> (delivered to mailbox)
> Nov 10 16:35:16 xen05 postfix/qmgr[2746]: 490F07829B: removed

So, I think your postfix works, your amavis works according  the logs.
But I do not see the gmail rejected related log?
I think you have to review your rules. Maybe they are too strict if
mails from gmail are rejected?


Reply to: