ivaldi / brimir

Email helpdesk built using Ruby on Rails and Zurb Foundation
http://getbrimir.com
GNU Affero General Public License v3.0
1.38k stars 299 forks source link

forward emails to brimir #248

Closed hadifarnoud closed 8 years ago

hadifarnoud commented 8 years ago

I'm not sure how brimir gets email. is there a forwarding address? I have my email server separate. how can I get it to work?

my email server is on mail.domain.com and brimir is on support.domain.com

frenkel commented 8 years ago

Is it a Linux mail server? You just have to install curl on the mail server and copy the script from your brimir repo in scripts/post-mail to the mail server. You can then follow these steps on the mail server: https://github.com/ivaldi/brimir#incoming-email

hadifarnoud commented 8 years ago

I had done that but still no tickets being created. I have run newaliases afterwards.

my aliases file:

# See man 5 aliases for format
postmaster:    root
support: "|/bin/sh /root/post-mail http://support.camva.ir/tickets.json"

my Brimir installation is on support.camva.ir and the support email is support@camva.ir

our mailing server is hosted on mail.camva.ir which is where I put the alias.

output of ls -l /etc/mail/alias* /usr/lib/sendmail

lrwxrwxrwx 1 root root 16 Feb  5  2015 /usr/lib/sendmail -> ../sbin/sendmail

PS: I'm using Mail-in-a-box

frenkel commented 8 years ago

What does your mail log report for mails to support@?

hadifarnoud commented 8 years ago

if you mean mail.log

Dec 22 08:42:44 mail postfix/tlsmgr[11973]: lookup smtp session id=smtp&gmail.com&gmail-smtp-in.l.google.com&74.125.206.26&&5E61B6DC5C08343A32A4F4D03DD3269B9130E25613714A09C4E511C795533378
Dec 22 08:42:44 mail postfix/tlsmgr[11973]: read smtp TLS cache entry smtp&gmail.com&gmail-smtp-in.l.google.com&74.125.206.26&&5E61B6DC5C08343A32A4F4D03DD3269B9130E25613714A09C4E511C795533378: time=1450766572 [data 1999 bytes]
Dec 22 08:42:44 mail postfix/tlsmgr[11973]: delete smtp session id=smtp&gmail.com&gmail-smtp-in.l.google.com&74.125.206.26&&5E61B6DC5C08343A32A4F4D03DD3269B9130E25613714A09C4E511C795533378
Dec 22 08:46:31 mail dovecot: config: Warning: service auth { client_limit=1000 } is lower than required under max. load (1250)
Dec 22 08:46:31 mail dovecot: config: Warning: service anvil { client_limit=1000 } is lower than required under max. load (1003)
Dec 22 08:46:31 mail dovecot: imap-login: Login: user=<support@camva.ir>, method=PLAIN, rip=52.90.133.210, lip=162.13.85.94, mpid=18834, TLS, session=<j21opHgnBgA0WoXS>
Dec 22 08:46:36 mail dovecot: imap(support@camva.ir): Connection closed in=115 out=161360
Dec 22 08:52:54 mail postfix/smtpd[19150]: connect from mail-qg0-x22f.google.com[2607:f8b0:400d:c04::22f]
Dec 22 08:52:55 mail postgrey[1627]: action=pass, reason=client whitelist, client_name=mail-qg0-x22f.google.com, client_address=2607:f8b0:400d:c04::22f, sender=hadi.farnoud@gmail.com, recipient=support@camva.ir
Dec 22 08:52:55 mail postfix/smtpd[19150]: 1EF94603DB: client=mail-qg0-x22f.google.com[2607:f8b0:400d:c04::22f]
Dec 22 08:52:55 mail postfix/cleanup[19153]: 1EF94603DB: message-id=<CANhU=M-gPrPQd19nZ-Etw6XuM_pTrY9PKe_aCVyoeOFKRbEUcA@mail.gmail.com>
Dec 22 07:29:38 mail opendkim[5811]: mail.camva.ir: key data is not secure: /home/user-data is writeable and owned by uid 1002 which is not the executing uid (111) or the superuser
Dec 22 08:52:55 mail opendkim[5811]: 1EF94603DB: s=20120113 d=gmail.com SSL 
Dec 22 08:52:55 mail opendmarc[1755]: 1EF94603DB ignoring Authentication-Results at 0 from mail.camva.ir
Dec 22 08:52:55 mail opendmarc[1755]: 1EF94603DB: gmail.com none
Dec 22 08:52:55 mail postfix/qmgr[11931]: 1EF94603DB: from=<hadi.farnoud@gmail.com>, size=2873, nrcpt=1 (queue active)
Dec 22 08:52:55 mail dovecot: config: Warning: service auth { client_limit=1000 } is lower than required under max. load (1250)
Dec 22 08:52:55 mail dovecot: config: Warning: service anvil { client_limit=1000 } is lower than required under max. load (1003)
Dec 22 08:52:55 mail dovecot: lmtp(19155): Connect from 127.0.0.1
Dec 22 08:52:55 mail spampd[1970]: processing message <CANhU=M-gPrPQd19nZ-Etw6XuM_pTrY9PKe_aCVyoeOFKRbEUcA@mail.gmail.com> for <support@camva.ir>
Dec 22 08:52:55 mail postfix/smtpd[19150]: disconnect from mail-qg0-x22f.google.com[2607:f8b0:400d:c04::22f]
Dec 22 08:52:55 mail spampd[1970]: clean message <CANhU=M-gPrPQd19nZ-Etw6XuM_pTrY9PKe_aCVyoeOFKRbEUcA@mail.gmail.com> (2.82/5.00) from <hadi.farnoud@gmail.com> for <support@camva.ir> in 0.04s, 3090 bytes.
Dec 22 08:52:55 mail postfix/pickup[17487]: A8A286132F: uid=8 from=<hadi.farnoud@gmail.com>
Dec 22 08:52:55 mail postfix/cleanup[19153]: A8A286132F: message-id=<CANhU=M-gPrPQd19nZ-Etw6XuM_pTrY9PKe_aCVyoeOFKRbEUcA@mail.gmail.com>
Dec 22 08:52:55 mail opendkim[5811]: A8A286132F: s=20120113 d=gmail.com SSL 
Dec 22 08:52:55 mail dovecot: lmtp(19155, support@camva.ir): SEWuHGcPeVbTSgAAxEtZ5Q: sieve: msgid=<CANhU=M-gPrPQd19nZ-Etw6XuM_pTrY9PKe_aCVyoeOFKRbEUcA@mail.gmail.com>: forwarded to <6438161@tickets.livechatinc.com>
Dec 22 08:52:55 mail dovecot: lmtp(19155, support@camva.ir): SEWuHGcPeVbTSgAAxEtZ5Q: sieve: msgid=<CANhU=M-gPrPQd19nZ-Etw6XuM_pTrY9PKe_aCVyoeOFKRbEUcA@mail.gmail.com>: stored mail into mailbox 'INBOX'
Dec 22 08:52:55 mail postfix/lmtp[19154]: 1EF94603DB: to=<support@camva.ir>, relay=127.0.0.1[127.0.0.1]:10025, delay=1.1, delays=0.85/0/0.02/0.22, dsn=2.0.0, status=sent (250 2.0.0 <support@camva.ir> SEWuHGcPeVbTSgAAxEtZ5Q Saved)
Dec 22 08:52:55 mail dovecot: lmtp(19155): Disconnect from 127.0.0.1: Successful quit
Dec 22 08:52:55 mail postfix/qmgr[11931]: A8A286132F: from=<hadi.farnoud@gmail.com>, size=3800, nrcpt=1 (queue active)
Dec 22 08:52:55 mail postfix/qmgr[11931]: 1EF94603DB: removed
Dec 22 08:52:55 mail postfix/smtp[19161]: initializing the client-side TLS engine
Dec 22 08:52:56 mail postfix/smtp[19161]: setting up TLS connection to inbound.postmarkapp.com[50.31.156.90]:25
Dec 22 08:52:56 mail postfix/smtp[19161]: inbound.postmarkapp.com[50.31.156.90]:25: TLS cipher list "aNULL:-aNULL:ALL:+RC4:@STRENGTH"
Dec 22 08:52:56 mail postfix/smtp[19161]: looking for session smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.90&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 in smtp cache
Dec 22 08:52:56 mail postfix/tlsmgr[11973]: lookup smtp session id=smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.90&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:before/connect initialization
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:unknown state
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 read server hello A
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 read server key exchange A
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 read server done A
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 write client key exchange A
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 write change cipher spec A
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 write finished A
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 flush data
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 read server session ticket A
Dec 22 08:52:56 mail postfix/smtp[19161]: SSL_connect:SSLv3 read finished A
Dec 22 08:52:56 mail postfix/smtp[19161]: save session smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.90&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 to smtp cache
Dec 22 08:52:56 mail postfix/tlsmgr[11973]: put smtp session id=smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.90&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 [data 289 bytes]
Dec 22 08:52:56 mail postfix/tlsmgr[11973]: write smtp TLS cache entry smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.90&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38: time=1450774376 [data 289 bytes]
Dec 22 08:52:56 mail postfix/smtp[19161]: Untrusted TLS connection established to inbound.postmarkapp.com[50.31.156.90]:25: TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)
Dec 22 08:52:57 mail postfix/smtp[19161]: A8A286132F: to=<6438161@tickets.livechatinc.com>, relay=inbound.postmarkapp.com[50.31.156.90]:25, delay=2.1, delays=0.05/0.02/0.79/1.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 974FA817A6)
Dec 22 08:52:57 mail postfix/qmgr[11931]: A8A286132F: removed
Dec 22 08:56:15 mail postfix/anvil[19151]: statistics: max connection rate 1/60s for (smtp:2607:f8b0:400d:c04::22f) at Dec 22 08:52:54
Dec 22 08:56:15 mail postfix/anvil[19151]: statistics: max connection count 1 for (smtp:2607:f8b0:400d:c04::22f) at Dec 22 08:52:54
Dec 22 08:56:15 mail postfix/anvil[19151]: statistics: max cache size 1 at Dec 22 08:52:54
Dec 22 08:59:37 mail dovecot: config: Warning: service auth { client_limit=1000 } is lower than required under max. load (1250)
Dec 22 08:59:37 mail dovecot: config: Warning: service anvil { client_limit=1000 } is lower than required under max. load (1003)
Dec 22 08:59:37 mail dovecot: imap-login: Login: user=<support@camva.ir>, method=PLAIN, rip=52.91.217.198, lip=162.13.85.94, mpid=19580, TLS, session=<EhRC03gn4wA0W9nG>
Dec 22 09:05:05 mail dovecot: imap(support@camva.ir): Connection closed in=115 out=161834
Dec 22 09:11:58 mail postfix/smtpd[20260]: connect from mail-qk0-x230.google.com[2607:f8b0:400d:c09::230]
Dec 22 09:11:59 mail postgrey[1627]: action=pass, reason=client whitelist, client_name=mail-qk0-x230.google.com, client_address=2607:f8b0:400d:c09::230, sender=hadi.farnoud@gmail.com, recipient=support@camva.ir
Dec 22 09:11:59 mail postgrey[1627]: cleaning up old logs...
Dec 22 09:11:59 mail postfix/smtpd[20260]: 1646160C21: client=mail-qk0-x230.google.com[2607:f8b0:400d:c09::230]
Dec 22 09:11:59 mail postfix/cleanup[20263]: 1646160C21: message-id=<CANhU=M9auA7f6q==bVMg2w_Ed0M_PPi3Ge9cpsoO0Cy47MYgEA@mail.gmail.com>
Dec 22 09:11:59 mail opendkim[5811]: 1646160C21: s=20120113 d=gmail.com SSL 
Dec 22 09:11:59 mail opendmarc[1755]: 1646160C21 ignoring Authentication-Results at 0 from mail.camva.ir
Dec 22 09:11:59 mail opendmarc[1755]: 1646160C21: gmail.com none
Dec 22 09:11:59 mail postfix/qmgr[11931]: 1646160C21: from=<hadi.farnoud@gmail.com>, size=3142, nrcpt=1 (queue active)
Dec 22 09:11:59 mail dovecot: config: Warning: service auth { client_limit=1000 } is lower than required under max. load (1250)
Dec 22 09:11:59 mail dovecot: config: Warning: service anvil { client_limit=1000 } is lower than required under max. load (1003)
Dec 22 09:11:59 mail dovecot: lmtp(20265): Connect from 127.0.0.1
Dec 22 09:11:59 mail spampd[1972]: processing message <CANhU=M9auA7f6q==bVMg2w_Ed0M_PPi3Ge9cpsoO0Cy47MYgEA@mail.gmail.com> for <support@camva.ir>
Dec 22 09:11:59 mail postfix/smtpd[20260]: disconnect from mail-qk0-x230.google.com[2607:f8b0:400d:c09::230]
Dec 22 09:11:59 mail spampd[1972]: clean message <CANhU=M9auA7f6q==bVMg2w_Ed0M_PPi3Ge9cpsoO0Cy47MYgEA@mail.gmail.com> (3.62/5.00) from <hadi.farnoud@gmail.com> for <support@camva.ir> in 0.04s, 3359 bytes.
Dec 22 09:11:59 mail postfix/pickup[17487]: 819B36128D: uid=8 from=<hadi.farnoud@gmail.com>
Dec 22 09:11:59 mail postfix/cleanup[20263]: 819B36128D: message-id=<CANhU=M9auA7f6q==bVMg2w_Ed0M_PPi3Ge9cpsoO0Cy47MYgEA@mail.gmail.com>
Dec 22 09:11:59 mail opendkim[5811]: 819B36128D: s=20120113 d=gmail.com SSL 
Dec 22 09:11:59 mail dovecot: lmtp(20265, support@camva.ir): YSJdGN8TeVYpTwAAxEtZ5Q: sieve: msgid=<CANhU=M9auA7f6q==bVMg2w_Ed0M_PPi3Ge9cpsoO0Cy47MYgEA@mail.gmail.com>: forwarded to <6438161@tickets.livechatinc.com>
Dec 22 09:11:59 mail dovecot: lmtp(20265, support@camva.ir): YSJdGN8TeVYpTwAAxEtZ5Q: sieve: msgid=<CANhU=M9auA7f6q==bVMg2w_Ed0M_PPi3Ge9cpsoO0Cy47MYgEA@mail.gmail.com>: stored mail into mailbox 'INBOX'
Dec 22 09:11:59 mail postfix/lmtp[20264]: 1646160C21: to=<support@camva.ir>, relay=127.0.0.1[127.0.0.1]:10025, delay=0.75, delays=0.58/0/0.02/0.14, dsn=2.0.0, status=sent (250 2.0.0 <support@camva.ir> YSJdGN8TeVYpTwAAxEtZ5Q Saved)
Dec 22 09:11:59 mail dovecot: lmtp(20265): Disconnect from 127.0.0.1: Successful quit
Dec 22 09:11:59 mail postfix/qmgr[11931]: 819B36128D: from=<hadi.farnoud@gmail.com>, size=4070, nrcpt=1 (queue active)
Dec 22 09:11:59 mail postfix/smtp[20271]: initializing the client-side TLS engine
Dec 22 09:11:59 mail postfix/qmgr[11931]: 1646160C21: removed
Dec 22 09:12:00 mail postfix/smtp[20271]: setting up TLS connection to inbound.postmarkapp.com[50.31.156.111]:25
Dec 22 09:12:00 mail postfix/smtp[20271]: inbound.postmarkapp.com[50.31.156.111]:25: TLS cipher list "aNULL:-aNULL:ALL:+RC4:@STRENGTH"
Dec 22 09:12:00 mail postfix/smtp[20271]: looking for session smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 in smtp cache
Dec 22 09:12:00 mail postfix/tlsmgr[11973]: lookup smtp session id=smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:before/connect initialization
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:unknown state
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 read server hello A
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 read server key exchange A
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 read server done A
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 write client key exchange A
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 write change cipher spec A
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 write finished A
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 flush data
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 read server session ticket A
Dec 22 09:12:00 mail postfix/smtp[20271]: SSL_connect:SSLv3 read finished A
Dec 22 09:12:00 mail postfix/smtp[20271]: save session smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 to smtp cache
Dec 22 09:12:00 mail postfix/tlsmgr[11973]: put smtp session id=smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 [data 289 bytes]
Dec 22 09:12:00 mail postfix/tlsmgr[11973]: write smtp TLS cache entry smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38: time=1450775520 [data 289 bytes]
Dec 22 09:12:00 mail postfix/smtp[20271]: Untrusted TLS connection established to inbound.postmarkapp.com[50.31.156.111]:25: TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)
Dec 22 09:12:00 mail postfix/smtp[20271]: 819B36128D: to=<6438161@tickets.livechatinc.com>, relay=inbound.postmarkapp.com[50.31.156.111]:25, delay=1.2, delays=0.04/0.02/0.88/0.27, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 2FC5762577)
Dec 22 09:12:00 mail postfix/qmgr[11931]: 819B36128D: removed
Dec 22 09:13:48 mail dovecot: imap-login: Login: user=<support@camva.ir>, method=PLAIN, rip=82.99.197.1, lip=162.13.85.94, mpid=20390, TLS, session=<W6j6BXkn+gBSY8UB>
Dec 22 09:13:52 mail dovecot: imap-login: Login: user=<support@camva.ir>, method=PLAIN, rip=82.99.197.1, lip=162.13.85.94, mpid=20392, TLS, session=<F/s3Bnkn/QBSY8UB>
Dec 22 09:13:53 mail dovecot: imap-login: Login: user=<support@camva.ir>, method=PLAIN, rip=82.99.197.1, lip=162.13.85.94, mpid=20394, TLS, session=<7p9KBnknAABSY8UB>
Dec 22 09:13:55 mail dovecot: imap(support@camva.ir): Disconnected: Logged out in=884 out=69652
Dec 22 09:15:19 mail postfix/anvil[20261]: statistics: max connection rate 1/60s for (smtp:2607:f8b0:400d:c09::230) at Dec 22 09:11:58
Dec 22 09:15:19 mail postfix/anvil[20261]: statistics: max connection count 1 for (smtp:2607:f8b0:400d:c09::230) at Dec 22 09:11:58
Dec 22 09:15:19 mail postfix/anvil[20261]: statistics: max cache size 1 at Dec 22 09:11:58
Dec 22 09:16:40 mail dovecot: imap-login: Login: user=<support@camva.ir>, method=PLAIN, rip=54.88.117.233, lip=162.13.85.94, mpid=20557, TLS, session=<EvA3EHknbQA2WHXp>
Dec 22 09:16:51 mail dovecot: imap(support@camva.ir): Connection closed in=145 out=129741
Dec 22 09:20:08 mail postfix/submission/smtpd[20730]: connect from mail-ob0-f170.google.com[209.85.214.170]
Dec 22 09:20:09 mail postfix/submission/smtpd[20730]: BC0F36128D: client=mail-ob0-f170.google.com[209.85.214.170], sasl_method=PLAIN, sasl_username=support@camva.ir
Dec 22 09:20:09 mail postfix/cleanup[20735]: BC0F36128D: replace: header Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170])??(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))??(No client certificate requested)??by mail. from mail-ob0-f170.google.com[209.85.214.170]; from=<support@camva.ir> to=<Elea.7783@email.com> proto=ESMTP helo=<mail-ob0-f170.google.com>: Received: from authenticated-user (unknown [127.0.0.1])??(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))??(No client certificate requested)??by mail.camva.ir (Postfix) with ESMTPSA id BC0F36128D??for <Elea.7783@email.com>; Tue, 22 Dec 2015 09:20:09 +0000 (GMT)
Dec 22 09:20:09 mail postfix/cleanup[20735]: BC0F36128D: replace: header Received: by mail-ob0-f170.google.com with SMTP id bx1so23491829obb.0?        for <Elea.7783@email.com>; Tue, 22 Dec 2015 01:20:09 -0800 (PST) from mail-ob0-f170.google.com[209.85.214.170]; from=<support@camva.ir> to=<Elea.7783@email.com> proto=ESMTP helo=<mail-ob0-f170.google.com>: Received: from authenticated-user (unknown [127.0.0.1])?        for <Elea.7783@email.com>; Tue, 22 Dec 2015 01:20:09 -0800 (PST)
Dec 22 09:20:09 mail postfix/cleanup[20735]: BC0F36128D: replace: header Received: by 10.182.52.162 with HTTP; Tue, 22 Dec 2015 01:19:38 -0800 (PST) from mail-ob0-f170.google.com[209.85.214.170]; from=<support@camva.ir> to=<Elea.7783@email.com> proto=ESMTP helo=<mail-ob0-f170.google.com>: Received: from authenticated-user (unknown [127.0.0.1])
Dec 22 09:20:09 mail postfix/cleanup[20735]: BC0F36128D: message-id=<CAK5Y3eT99uPa3CSpwKz4kqAwr-5L1qCDtnKGgYw_HPm2GNmQyg@mail.gmail.com>
Dec 22 09:20:10 mail opendkim[5811]: camva.ir: key data is not secure: /home/user-data is writeable and owned by uid 1002 which is not the executing uid (111) or the superuser
Dec 22 09:20:10 mail postfix/qmgr[11931]: BC0F36128D: from=<support@camva.ir>, size=9314, nrcpt=1 (queue active)
Dec 22 09:20:10 mail postfix/smtp[20736]: initializing the client-side TLS engine
Dec 22 09:20:10 mail postfix/submission/smtpd[20730]: disconnect from mail-ob0-f170.google.com[209.85.214.170]
Dec 22 09:20:10 mail postfix/smtp[20736]: setting up TLS connection to mx01.gmx.com[74.208.5.27]:25
Dec 22 09:20:10 mail postfix/smtp[20736]: mx01.gmx.com[74.208.5.27]:25: TLS cipher list "aNULL:-aNULL:ALL:+RC4:@STRENGTH"
Dec 22 09:20:10 mail postfix/smtp[20736]: looking for session smtp&email.com&mx01.gmx.com&74.208.5.27&&0A8CF64E2D4A885FA286766BCBAE85C0F15989453069F498F3BA63CB8477F2E7 in smtp cache
Dec 22 09:20:10 mail postfix/tlsmgr[11973]: lookup smtp session id=smtp&email.com&mx01.gmx.com&74.208.5.27&&0A8CF64E2D4A885FA286766BCBAE85C0F15989453069F498F3BA63CB8477F2E7
Dec 22 09:20:10 mail postfix/smtp[20736]: SSL_connect:before/connect initialization
Dec 22 09:20:10 mail postfix/smtp[20736]: SSL_connect:unknown state
Dec 22 09:20:10 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server hello A
Dec 22 09:20:10 mail postfix/smtp[20736]: mx01.gmx.com[74.208.5.27]:25: depth=2 verify=1 subject=/C=US/O=thawte, Inc./OU=Certification Services Division/OU=(c) 2006 thawte, Inc. - For authorized use only/CN=thawte Primary Root CA
Dec 22 09:20:10 mail postfix/smtp[20736]: mx01.gmx.com[74.208.5.27]:25: depth=1 verify=1 subject=/C=US/O=thawte, Inc./CN=thawte SSL CA - G2
Dec 22 09:20:10 mail postfix/smtp[20736]: mx01.gmx.com[74.208.5.27]:25: depth=0 verify=1 subject=/C=US/ST=Pennsylvania/L=Chesterbrook/O=1&1 Mail & Media Inc./CN=mx01.gmx.com
Dec 22 09:20:10 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server certificate A
Dec 22 09:20:10 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server key exchange A
Dec 22 09:20:10 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server done A
Dec 22 09:20:11 mail postfix/smtp[20736]: SSL_connect:SSLv3 write client key exchange A
Dec 22 09:20:11 mail postfix/smtp[20736]: SSL_connect:SSLv3 write change cipher spec A
Dec 22 09:20:11 mail postfix/smtp[20736]: SSL_connect:SSLv3 write finished A
Dec 22 09:20:11 mail postfix/smtp[20736]: SSL_connect:SSLv3 flush data
Dec 22 09:20:11 mail postfix/smtp[20736]: SSL_connect:SSLv3 read finished A
Dec 22 09:20:11 mail postfix/smtp[20736]: save session smtp&email.com&mx01.gmx.com&74.208.5.27&&0A8CF64E2D4A885FA286766BCBAE85C0F15989453069F498F3BA63CB8477F2E7 to smtp cache
Dec 22 09:20:11 mail postfix/tlsmgr[11973]: put smtp session id=smtp&email.com&mx01.gmx.com&74.208.5.27&&0A8CF64E2D4A885FA286766BCBAE85C0F15989453069F498F3BA63CB8477F2E7 [data 1322 bytes]
Dec 22 09:20:11 mail postfix/tlsmgr[11973]: write smtp TLS cache entry smtp&email.com&mx01.gmx.com&74.208.5.27&&0A8CF64E2D4A885FA286766BCBAE85C0F15989453069F498F3BA63CB8477F2E7: time=1450776011 [data 1322 bytes]
Dec 22 09:20:11 mail postfix/smtp[20736]: mx01.gmx.com[74.208.5.27]:25: subject_CN=mx01.gmx.com, issuer_CN=thawte SSL CA - G2, fingerprint=0D:9F:10:6E:B8:55:E5:7C:DF:25:C1:BF:FB:3F:14:DD, pkey_fingerprint=E9:F7:B8:0A:5C:90:99:43:11:24:D5:01:FC:A1:51:59
Dec 22 09:20:11 mail postfix/smtp[20736]: Trusted TLS connection established to mx01.gmx.com[74.208.5.27]:25: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Dec 22 09:20:12 mail postfix/smtp[20736]: BC0F36128D: to=<Elea.7783@email.com>, relay=mx01.gmx.com[74.208.5.27]:25, delay=3.2, delays=0.63/0.03/1.1/1.5, dsn=5.0.0, status=bounced (host mx01.gmx.com[74.208.5.27] said: 550 Requested action not taken: mailbox unavailable (in reply to RCPT TO command))
Dec 22 09:20:12 mail postfix/cleanup[20738]: E952A612C4: message-id=<20151222092012.E952A612C4@mail.camva.ir>
Dec 22 09:20:12 mail postfix/qmgr[11931]: E952A612C4: from=<>, size=11580, nrcpt=1 (queue active)
Dec 22 09:20:12 mail postfix/bounce[20737]: BC0F36128D: sender non-delivery notification: E952A612C4
Dec 22 09:20:12 mail postfix/qmgr[11931]: BC0F36128D: removed
Dec 22 09:20:12 mail dovecot: lmtp(20740): Connect from 127.0.0.1
Dec 22 09:20:13 mail spampd[1971]: processing message <20151222092012.E952A612C4@mail.camva.ir> for <support@camva.ir>
Dec 22 09:20:13 mail spampd[1971]: clean message <20151222092012.E952A612C4@mail.camva.ir> (0.00/5.00) from <> for <support@camva.ir> in 0.25s, 11546 bytes.
Dec 22 09:20:13 mail postfix/pickup[17487]: 53B41612C3: uid=8 from=<>
Dec 22 09:20:13 mail postfix/cleanup[20738]: 53B41612C3: message-id=<20151222092012.E952A612C4@mail.camva.ir>
Dec 22 09:20:13 mail opendkim[5811]: mail.camva.ir: key data is not secure: /home/user-data is writeable and owned by uid 1002 which is not the executing uid (111) or the superuser
Dec 22 09:20:13 mail dovecot: lmtp(20740, support@camva.ir): k07/OswVeVYEUQAAxEtZ5Q: sieve: msgid=<20151222092012.E952A612C4@mail.camva.ir>: forwarded to <6438161@tickets.livechatinc.com>
Dec 22 09:20:13 mail postfix/lmtp[20739]: E952A612C4: to=<support@camva.ir>, relay=127.0.0.1[127.0.0.1]:10025, delay=0.4, delays=0.01/0/0.03/0.36, dsn=2.0.0, status=sent (250 2.0.0 <support@camva.ir> k07/OswVeVYEUQAAxEtZ5Q Saved)
Dec 22 09:20:13 mail dovecot: lmtp(20740, support@camva.ir): k07/OswVeVYEUQAAxEtZ5Q: sieve: msgid=<20151222092012.E952A612C4@mail.camva.ir>: stored mail into mailbox 'INBOX'
Dec 22 09:20:13 mail dovecot: lmtp(20740): Disconnect from 127.0.0.1: Successful quit
Dec 22 09:20:13 mail postfix/qmgr[11931]: 53B41612C3: from=<>, size=12179, nrcpt=1 (queue active)
Dec 22 09:20:13 mail postfix/qmgr[11931]: E952A612C4: removed
Dec 22 09:20:13 mail postfix/smtp[20736]: setting up TLS connection to inbound.postmarkapp.com[50.31.156.111]:25
Dec 22 09:20:13 mail postfix/smtp[20736]: inbound.postmarkapp.com[50.31.156.111]:25: TLS cipher list "aNULL:-aNULL:ALL:+RC4:@STRENGTH"
Dec 22 09:20:13 mail postfix/smtp[20736]: looking for session smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 in smtp cache
Dec 22 09:20:13 mail postfix/tlsmgr[11973]: lookup smtp session id=smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38
Dec 22 09:20:13 mail postfix/tlsmgr[11973]: read smtp TLS cache entry smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38: time=1450775520 [data 289 bytes]
Dec 22 09:20:13 mail postfix/smtp[20736]: reloaded session smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 from smtp cache
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:before/connect initialization
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 write client hello A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server hello A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server key exchange A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server done A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 write client key exchange A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 write change cipher spec A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 write finished A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 flush data
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 read server session ticket A
Dec 22 09:20:13 mail postfix/smtp[20736]: SSL_connect:SSLv3 read finished A
Dec 22 09:20:13 mail postfix/smtp[20736]: save session smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 to smtp cache
Dec 22 09:20:13 mail postfix/tlsmgr[11973]: put smtp session id=smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38 [data 289 bytes]
Dec 22 09:20:13 mail postfix/tlsmgr[11973]: write smtp TLS cache entry smtp&tickets.livechatinc.com&inbound.postmarkapp.com&50.31.156.111&&D064C6C39E31CE7EDFFF7D553686BE2DB3B79F4D184F3C245EB0D8A4891B0B38: time=1450776013 [data 289 bytes]
Dec 22 09:20:13 mail postfix/smtp[20736]: Untrusted TLS connection established to inbound.postmarkapp.com[50.31.156.111]:25: TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)
Dec 22 09:20:14 mail postfix/smtp[20736]: 53B41612C3: to=<6438161@tickets.livechatinc.com>, relay=inbound.postmarkapp.com[50.31.156.111]:25, delay=1.3, delays=0.04/0/0.7/0.55, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 04FBB62577)
Dec 22 09:20:14 mail postfix/qmgr[11931]: 53B41612C3: removed
Dec 22 09:23:30 mail postfix/anvil[20731]: statistics: max connection rate 1/60s for (submission:209.85.214.170) at Dec 22 09:20:08
Dec 22 09:23:30 mail postfix/anvil[20731]: statistics: max connection count 1 for (submission:209.85.214.170) at Dec 22 09:20:08
Dec 22 09:23:30 mail postfix/anvil[20731]: statistics: max cache size 1 at Dec 22 09:20:08
Dec 22 09:25:32 mail postfix/submission/smtpd[21065]: connect from unknown[89.248.167.162]
Dec 22 09:25:32 mail postfix/submission/smtpd[21065]: lost connection after EHLO from unknown[89.248.167.162]
Dec 22 09:25:32 mail postfix/submission/smtpd[21065]: disconnect from unknown[89.248.167.162]
Dec 22 09:28:52 mail postfix/anvil[21066]: statistics: max connection rate 1/60s for (submission:89.248.167.162) at Dec 22 09:25:32
Dec 22 09:28:52 mail postfix/anvil[21066]: statistics: max connection count 1 for (submission:89.248.167.162) at Dec 22 09:25:32
Dec 22 09:28:52 mail postfix/anvil[21066]: statistics: max cache size 1 at Dec 22 09:25:32
Dec 22 09:31:09 mail dovecot: imap-login: Login: user=<support@camva.ir>, method=PLAIN, rip=52.23.153.173, lip=162.13.85.94, mpid=21328, TLS, session=<X/gFRHknqAA0F5mt>

I successfully got the email on the inbox. for some reason, alias either not honored or Brimir is not catching it.

frenkel commented 8 years ago

You need some special setup to make a mailbox also be an alias. I believe the simplest manner is to remove the lines from /etc/aliases and create a .forward file in the mailbox directory with the right contents, but I have no experience with that.

hadifarnoud commented 8 years ago

it turns out, Mail-in-a-box does not support piping emails. and you don't support IMAP fetch or any other method. I'm stuck :disappointed: :sos:

hadifarnoud commented 8 years ago

Is there a way to use Sieve instead? you can directly write pipe script in it http://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Pipe

frenkel commented 8 years ago

Mail-in-a-box should support sieve than, the Brimir end doesn't need any changes as long as something can run the post-mail script.

jangrewe commented 8 years ago

I don't know mail-in-a-box, but i had a similar issue with Dovecot ignoring /etc/aliases (of course, as it doesn't know about it) and then bouncing my mails because it didn't know the recipient address.

The solution was to forward "support@mydomain.com" to "support@localhost.localdomain", and because my Postfix has listed "localhost.localdomain" in its "mydestination" parameter, those mails don't get passed to Dovecot but are handled by Postfix locally - which means it uses /etc/aliases and posts the message to the Brimir script.