Hello all ,
I have an
Alaveteli Site , where mail replies ( from FOI officers ) dont apear in the site .
I checked many times the config on exim and I can't figure out the problem .
Here are my configs , some one might have run into this and help is much appreciated .
Testing mail delivery $ exim -bt foi+request-1234@localhost
R: alaveteli for foi+request-1234@localhost
foi+request-1234@localhost -> |/home/marsoum/current/script/mailin
transport = alaveteli_mailin_transport
Exim configs /etc/exim4/conf.d/main/04_alaveteli_options
ALAVETELI_HOME=/home/marsoum/current
ALAVETELI_USER=www-data
log_file_path=/var/log/exim4/exim-%slog-%D
MAIN_LOG_SELECTOR==+all -retry_defer
/etc/exim4/conf.d/router/04_alaveteli
alaveteli_request:
debug_print = "R: alaveteli for $local_part@$domain"
driver = redirect
data = ${lookup{$local_part}wildlsearch{/home/marsoum/current/config/aliases}
}
pipe_transport = alaveteli_mailin_transport
/etc/exim4/conf.d/transport/04_alaveteli
alaveteli_mailin_transport:
driver = pipe
command = $address_pipe ${lc:$local_part}
current_directory = /home/marsoum/current
home_directory = /home/marsoum/current
user = www-data
group = www-data
Testing with dummy fixture
$ cp spec/fixtures/files/incoming-request-plain.email /tmp/
$ perl -pi -e 's/^To:.*/To: <foi+request...@marsoum41.org>/' /tmp/incoming-request-plain.email$ ./script/mailin < /tmp/incoming-request-plain.email
$ echo $?
0
Other details
The user www-data owns /home/marsoum directory (and all subdirectories)
ALAVETELI_HOME/files/raw_emails wasn't created until I used the the dummy email reply mail above ( and contains only that email )
mail log gets pulled and appear in the backend as follows :
2013-04-28 11:10:06 [2438] cwd=/home/marsoum/releases/20130428024202 5 args: /usr/sbin/sendmail -i -t -f foi+request...@marsoum41.org
2013-04-28 11:10:06 [2438] 1UWUAw-0000dK-Ma <= foi+request...@marsoum41.org U=marsoum P=local S=1283 id=ogm-3+517d49...@marsoum41.org T="Freedom of Information request - Salaire des imams" from <foi+request...@marsoum41.org> for radho...@gmail.com
2013-04-28 11:10:07 [2439] 1UWUAw-0000dK-Ma => radho...@gmail.com F=<foi+request...@marsoum41.org> P=<foi+request...@marsoum41.org> R=dnslookup T=remote_smtp S=1320 H=gmail-smtp-in.l.google.com [2607:f8b0:4003:c02::1a]:25 X=TLS1.0:RSA_ARCFOUR_SHA1:16 CV=no DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com" C="250 2.0.0 OK 1367165406 oi2si10015250obc.201 - gsmtp" QT=1s DT=1s
2013-04-28 18:15:57 [3179] cwd=/home/marsoum/releases/20130428220633 5 args: /usr/sbin/sendmail -i -t -f foi+request...@marsoum41.org
2013-04-28 18:15:57 [3179] 1UWap3-0000pH-KB <= foi+request...@marsoum41.org U=nobody P=local S=1283 id=ogm-3+517dad...@marsoum41.org T="Freedom of Information request - Liste des Etablissements" from <foi+request...@marsoum41.org> for radho...@gmail.com
2013-04-28 18:15:59 [3180] 1UWap3-0000pH-KB => radho...@gmail.com F=<foi+request...@marsoum41.org> P=<foi+request...@marsoum41.org> R=dnslookup T=remote_smtp S=1317 H=gmail-smtp-in.l.google.com [2607:f8b0:4003:c02::1a]:25 X=TLS1.0:RSA_ARCFOUR_SHA1:16 CV=no DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com" C="250 2.0.0 OK 1367190958 rm9si2287227oeb.27 - gsmtp" QT=2s DT=1s
Any Idea how to fix that ?
ps : I added Arabic language and French language to transifex if any one is interested in using Alaveteli in the Arab or French speaking world