Hello I have a Alaveteli instance in beta testing but I am having some issues with the mailing system.
http://alaveteli.nuvasuparati.info
I replaced all the public body's mails with a mail that I own so I can act as the public bodies and test the system before importing the real public bodies. Now the mail of “Ministry of Silly Walks“ points to institutie...@gmail.com which is my testing mail.
When I add a new request it gets sent by mail as for example http://alaveteli.nuvasuparati.info/en/request/why_walk_funny
But when institutie...@gmail.com responds to the mail, it does not get pulled into the system.
The email doesn't get written to a file in “files/raw_emails”. Everybody has write permission to files/raw_emails. Not very secure but I wanted to troubleshoot the issue.
ls -la /var/www/alaveteli/files/raw_emails
drwxr-xrwx
I tried to run the mailin script from my local environment like it is described in DOC/INSTALL.md.
./script/console
InfoRequest.find_by_url_title("why_walk_funny").incoming_email
"foi+request-...@alaveteli.nuvasuparati.info"
cp spec/fixtures/files/incoming-request-plain.email /tmp/
# this command replaces To: FOI Person <EMAIL_TO> with To: <foi+request-...@alaveteli.nuvasuparati.info> in a fixture mail
perl -pi -e 's/^To:.*/To: <foi+request-115-ed276d97\@alaveteli.nuvasuparati.info>/' /tmp/incoming-request-plain.email
./script/mailin < /tmp/incoming-request-plain.email
echo $?
75
The result should be 0 from what I understand. After I run the above script I get a mail with the following attatchment “mailimporterrorforalaveteli_nuvasuparati_info.zip”.
It seems that the email gets pulled into the Alaveteli system when I get a reply simulated reply by running the “mailin” script. http://alaveteli.nuvasuparati.info/en/request/why_walk_funny
select * from incoming_messages where id = (select max(id) from incoming_messages);
The mail in the raw_emails gets written with the correct content when I run just the script.
production:
adapter: postgresql
database: foi_development
I get some strange error messages from gmail that it cannot connect to my mail server. If I telnet to my smtp server I see the port 25 opened (telnet alaveteli.nuvasuparati.info 25). I added a file with a similar error message from gmail but not for the foi request that I am troubleshooting right now. This might be a different issue (see attatchment “gmail mail error.odt”).
Sorry for the long email, I wanted to give you as much information as I can about my issue. Can you help me? Can I give you more information about this problem?