Mail server delivery logs

33 views
Skip to first unread message

Miroslav Schlossberg

unread,
May 8, 2016, 3:08:35 PM5/8/16
to alavet...@googlegroups.com
Hey peeps,

Sometimes I don't see anything under "Mail server delivery logs" for specific request where are lines containing the request incoming email address, they should be updated hourly. For example http://imamopravoznati.org/admin/requests/1104

I can only see generic message saying "None (perhaps this is an old or a very new request)".

But when I grepped mail logs, I have found that email for this request has been sent to FOI officer email:

Apr 14 22:50:26 imamopravoznati postfix/pickup[31691]: 8AF7766006: uid=1001 from=<ppi+RE...@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/cleanup[9579]: 8AF7766006: message-id=<ogm-2006...@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/pickup[31691]: 8AF7766006: uid=1001 from=<ppi+request-...@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/cleanup[9579]: 8AF7766006: message-id=<ogm-2006...@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/qmgr[13300]: 8AF7766006: from=<ppi+reques...@imamopravoznati.org>, size=2904, nrcpt=1 (queue active)
Apr 14 22:50:26 imamopravoznati postfix/qmgr[13300]: 8AF7766006: from=<ppi+reques...@imamopravoznati.org>, size=2904, nrcpt=1 (queue active)
Apr 14 22:50:28 imamopravoznati postfix/smtp[9689]: 8AF7766006: to=<FOI_OFFICER_EMAIL_REDACTED>, relay=dns.bolnica-du.hr[193.198.61.3]:25, delay=1.5, delays=0.09/0/1/0.4, dsn=2.0.0, status=sent (250 2.0.0 u3EKne0M024761 Message accepted for delivery)
Apr 14 22:50:28 imamopravoznati postfix/smtp[9689]: 8AF7766006: to=<FOI_OFFICER_EMAIL_REDACTED>, relay=dns.bolnica-du.hr[193.198.61.3]:25, delay=1.5, delays=0.09/0/1/0.4, dsn=2.0.0, status=sent (250 2.0.0 u3EKne0M024761 Message accepted for delivery)
Apr 14 22:50:28 imamopravoznati postfix/qmgr[13300]: 8AF7766006: removed
Apr 14 22:50:28 imamopravoznati postfix/qmgr[13300]: 8AF7766006: removed


Are there any special reasons why I don't see mail delivery log in web admin?

Cheers,
Miroslav

Gareth Rees

unread,
May 9, 2016, 5:09:53 AM5/9/16
to Alaveteli Dev
Hey Miroslav,

Hmm, certainly sounds strange.

Could you take a look in the database to see whether those lines have been stored, but not matched against the request?

    $ sudo su - APP_USER
    $ cd APP_ROOT
    $ bundle exec rails db
    > SELECT id,info_request_id,line FROM mail_server_logs WHERE line ILIKE '%8AF7766006%';

Cheers,

Gareth

On Sunday, 8 May 2016 20:08:35 UTC+1, Miroslav Schlossberg wrote:
Hey peeps,

Sometimes I don't see anything under "Mail server delivery logs" for specific request where are lines containing the request incoming email address, they should be updated hourly. For example http://imamopravoznati.org/admin/requests/1104

I can only see generic message saying "None (perhaps this is an old or a very new request)".

But when I grepped mail logs, I have found that email for this request has been sent to FOI officer email:

Apr 14 22:50:26 imamopravoznati postfix/pickup[31691]: 8AF7766006: uid=1001 from=<ppi+REDACTED@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/cleanup[9579]: 8AF7766006: message-id=<ogm-2006+REDACTED@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/pickup[31691]: 8AF7766006: uid=1001 from=<ppi+request-1104-001b...@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/cleanup[9579]: 8AF7766006: message-id=<ogm-2006+REDACTED@imamopravoznati.org>
Apr 14 22:50:26 imamopravoznati postfix/qmgr[13300]: 8AF7766006: from=<ppi+request-REDACTED@imamopravoznati.org>, size=2904, nrcpt=1 (queue active)
Apr 14 22:50:26 imamopravoznati postfix/qmgr[13300]: 8AF7766006: from=<ppi+request-REDACTED@imamopravoznati.org>, size=2904, nrcpt=1 (queue active)
Reply all
Reply to author
Forward
0 new messages