26

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

dcihon wrote:
ZhangHuangbin wrote:

All files under /var/vmail/vmail1 must be owned by "vmail:vmail" with permission 0700.

This seems to be the permissions of every folder and file below vmail1:
drwx------ 3 vmail vmail 4096 Aug 19 11:08 dccathome.com

Update:
I changed the permissions on the /var/vmail folder to this and it is working:
drwxr-xr-x  5 vmail vmail  4096 Aug 21 21:24 vmail


Now I need to get it to send and receive mail.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

27

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Please check permissions of all directories in this url:

/var/vmail/vmail1/dccathome.com/p/o/s/postmaster-2015.08.19.10.55.15/Maildir/

Which means, check
/var/vmail
/var/vmail/vmail1/
/var/vmail/vmail1/dccathome.com/
...

28

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I made some changes and this is probably all wrong now.
Here is what I have for the directories now:
/var/vmail                                            drwxr-xr-x  vmail  vmail
/var/vmail/vmail1/                               drwxr-xr-x  vmail  vmail
/var/vmail/vmail1/dccathome.com/   drwxr-xr-s  vmail   vmail

29

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

dcihon wrote:

I made some changes and this is probably all wrong now.
Here is what I have for the directories now:
/var/vmail                                            drwxr-xr-x  vmail  vmail
/var/vmail/vmail1/                               drwxr-xr-x  vmail  vmail
/var/vmail/vmail1/dccathome.com/   drwxr-xr-s  vmail   vmail

Fix it with this:
1) login as root
2) cd /var
3) chmod 700 vmail
4) cd vmail
5) find . -type f -print0 | xargs -0 chmod 700
6) find . -type d -print0 | xargs -0 chmod 700

30 (edited by dcihon 2015-08-26 05:30:10)

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I can now send mail out. I am on a att.net home network using this so I use gmail as my smtp server. I cannot receive mail yet. Here is some info from my mail.log file:
Aug 25 15:12:30 mail postfix/qmgr[14951]: 4C567C2212: from=<CBDLifeLabs@enord.uno>, size=9044, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: B4093C22B9: from=<bounces+52485-7185-danc=dccathome.com@SG01.motosnap.com>, size=63553, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: BF7D0C222F: from=<diana_russell@fjordgroup.com.ua>, size=1816, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: B8E65C220E: from=<yicfmdp@ae.com>, size=161698, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/pipe[16445]: 5A417C228E: to=<danc@dccathome.com>, relay=dovecot, delay=4642, delays=4642/0.01/0/0.08, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/qmgr[14951]: 7EC77C218D: from=<DrugRehab@cloudprivatejets.eu>, size=3182, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: 06F59C2291: from=<WalkInTubs@cloudprivatejets.eu>, size=3337, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: DC176C218E: from=<b067233eb05danc=dccathome.com@bounce.twitter.com>, size=98384, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/pipe[16468]: 4C567C2212: to=<danc@dccathome.com>, relay=dovecot, delay=13242, delays=13242/0.05/0/0.09, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/qmgr[14951]: 1328BC224E: from=<Beverly_Hills_MD@sevolotion.com>, size=5042, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: 14542C2257: from=<TMobile_Provider@histocrat.com>, size=8592, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: F0622C2250: from=<root@mail.dccathome.com>, size=1317, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: A6B57C22B7: from=<btv1==679b9ce9ccd==Dan.Cihon@corriganco.com>, size=3280, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: A4CFCC2256: from=<ae027@doorbuild.xyz>, size=22082, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/qmgr[14951]: 8CB8AC2262: from=<HomeRepairGuard@uncamar.uno>, size=6308, nrcpt=1 (queue active)
Aug 25 15:12:30 mail postfix/pipe[16469]: B4093C22B9: to=<danc@dccathome.com>, relay=dovecot, delay=481, delays=481/0.05/0/0.12, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16471]: BF7D0C222F: to=<danc@dccathome.com>, relay=dovecot, delay=13234, delays=13234/0.05/0/0.15, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16445]: B8E65C220E: to=<danc@dccathome.com>, relay=dovecot, delay=13242, delays=13242/0.04/0/0.18, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16475]: 7EC77C218D: to=<danc@dccathome.com>, relay=dovecot, delay=373, delays=373/0.05/0/0.16, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16476]: DC176C218E: to=<danc@dccathome.com>, relay=dovecot, delay=13243, delays=13243/0.05/0/0.17, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16468]: 06F59C2291: to=<danc@dccathome.com>, relay=dovecot, delay=4250, delays=4250/0.06/0/0.18, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16479]: 1328BC224E: to=<danc@dccathome.com>, relay=dovecot, delay=13116, delays=13116/0.06/0/0.17, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16471]: A6B57C22B7: to=<danc@dccathome.com>, relay=dovecot, delay=555, delays=555/0.08/0/0.16, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16482]: F0622C2250: to=<postmaster@dccathome.com>, relay=dovecot, delay=11745, delays=11745/0.08/0/0.17, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:30 mail postfix/pipe[16469]: 14542C2257: to=<danc@dccathome.com>, relay=dovecot, delay=13021, delays=13021/0.06/0/0.2, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:31 mail postfix/pipe[16485]: 8CB8AC2262: to=<danc@dccathome.com>, relay=dovecot, delay=8992, delays=8992/0.1/0/0.16, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:12:31 mail postfix/pipe[16445]: A4CFCC2256: to=<danc@dccathome.com>, relay=dovecot, delay=13243, delays=13243/0.11/0/0.16, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 25 15:15:36 mail postfix/anvil[16424]: statistics: max connection rate 1/60s for (smtp:192.3.99.217) at Aug 25 15:12:13
Aug 25 15:15:36 mail postfix/anvil[16424]: statistics: max connection count 1 for (smtp:192.3.99.217) at Aug 25 15:12:13
Aug 25 15:15:36 mail postfix/anvil[16424]: statistics: max cache size 1 at Aug 25 15:12:13
Aug 25 15:17:30 mail postfix/qmgr[14951]: C3FE7C216A: from=<bounce-debian-testing-changes=danc=dccathome.com@lists.debian.org>, size=5987, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 5AF13C21BD: from=<info@wowfkeefs.com>, size=6852, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 439B0C22B5: from=<dcihon@gmail.com>, size=2370, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: BDB20C217D: from=<bounce-debian-testing-changes=danc=dccathome.com@lists.debian.org>, size=9562, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 76168C2265: from=<dcihon@gmail.com>, size=2365, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 0907AC0D55: from=<www-data@mail.dccathome.com>, size=2792, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 92F88C1C45: from=<PrivateJets@privatejetsservice.eu>, size=8262, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 9E042C1C44: from=<angelica_hughes@thelaughbutton.com>, size=2051, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 6D74FC22C0: from=<PerfectBiotics@equip.uno>, size=8071, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: DFFEFC22A4: from=<www-data@mail.dccathome.com>, size=2792, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: D2E18C21EF: from=<www-data@mail.dccathome.com>, size=2929, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: D5669C22B8: from=<www-data@mail.dccathome.com>, size=2792, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: E8311C2156: from=<no-reply@fiqhshul.com>, size=13892, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: ACED3C2297: from=<127-GRI-621.0.3664.0.0.6319.7.41298706@em-sj-77.mktomail.com>, size=29291, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 301D3C22AF: from=<www-data@mail.dccathome.com>, size=2792, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/qmgr[14951]: 37B3CC205A: from=<post@lamermaven.com>, size=16301, nrcpt=1 (queue active)
Aug 25 15:17:30 mail postfix/pipe[16877]: C3FE7C216A: to=<danc@dccathome.com>, relay=dovecot, delay=13086, delays=13085/0.04/0/0.19, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )

I have tried many settings for chmod and chown for the permission denied error and can't figure out what is causing this issue.
I don't know if that is why it won't receive email or not.
Any help is appeciated.
I have also looked at posts in this forum and they didn't seem to help unless I missed something.
Thanks
Dan

It also looks like now that it is sending mail out someone or something is trying to send mail out through google that isn't me.
I am getting several of these from differnent sources. Some are junk mail that looks like it is coming into my server and then trying to go back out.

Undelivered Mail Returned to Sender
Mail Delivery System <dcihon@gmail.com>
   
4:27 PM (0 minutes ago)
       
to bounce-debian-.
This is the mail system at host mail.dccathome.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<danc@dccathome.com>: temporary failure. Command output: Can't open log file
    /var/log/dovecot-sieve.log: Permission denied

Final-Recipient: rfc822; danc@dccathome.com
Original-Recipient: rfc822;danc@dccathome.com
Action: failed
Status: 4.3.0
Diagnostic-Code: x-unix; Can't open log file /var/log/dovecot-sieve.log:
    Permission denied

31

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

dcihon wrote:

Aug 25 15:12:30 mail postfix/pipe[16445]: 5A417C228E: to=<danc@dccathome.com>, relay=dovecot, delay=4642, delays=4642/0.01/0/0.08, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )

Fix it with commands below:

cd /var/log/
touch dovecot{,-sieve,-lmtp}.log
chown vmail:vmail dovecot{,-sieve,-lmtp}.log
chmod 0600 dovecot{,-sieve,-lmtp}.log

32

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Did what you said:

Aug 26 05:59:14 mail postfix/smtpd[23668]: 25AAFC220D: client=localhost[127.0.0.1]
Aug 26 05:59:14 mail postfix/cleanup[23476]: 25AAFC220D: message-id=<20150826105847.5C869C2212@mail.dccathome.com>
Aug 26 05:59:14 mail postfix/qmgr[23411]: 25AAFC220D: from=<www-data@mail.dccathome.com>, size=2792, nrcpt=1 (queue active)
Aug 26 05:59:14 mail amavis[13566]: (13566-02-22) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [127.0.0.1] <www-data@mail.dccathome.com> -> <root@mail.dccathome.com>, Message-ID: <20150826105847.5C869C2212@mail.dccathome.com>, mail_id: FLbpT8aQUU6z, Hits: 0, size: 2312, queued_as: 25AAFC220D, 801 ms
Aug 26 05:59:14 mail postfix/smtp[23871]: 5C869C2212: to=<root@mail.dccathome.com>, relay=127.0.0.1[127.0.0.1]:10024, conn_use=22, delay=43752, delays=43725/26/0/0.85, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 25AAFC220D)
Aug 26 05:59:14 mail postfix/qmgr[23411]: 5C869C2212: removed
Aug 26 05:59:14 mail postfix/local[23430]: 25AAFC220D: to=<root@mail.dccathome.com>, relay=local, delay=0.11, delays=0.03/0/0/0.08, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )
Aug 26 05:59:15 mail postfix/smtpd[23695]: disconnect from localhost[127.0.0.1]
Aug 26 05:59:15 mail postfix/smtpd[23670]: disconnect from localhost[127.0.0.1]
Aug 26 05:59:15 mail postfix/smtpd[23693]: disconnect from localhost[127.0.0.1]
Aug 26 05:59:16 mail postfix/smtpd[23668]: disconnect from localhost[127.0.0.1]

33

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

Although this does not help you directly, I strongly recommend reinstalling Debian and starting with fresh iRedMail. I use the same configuration and it is flawless, out of the box.

Migrate mails and accounts afterwards as described in the wiki.

34

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

dcihon wrote:

Aug 26 05:59:14 mail postfix/local[23430]: 25AAFC220D: to=<root@mail.dccathome.com>, relay=local, delay=0.11, delays=0.03/0/0/0.08, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /var/log/dovecot-sieve.log: Permission denied )

Did you restart Dovecot service and try again?

35

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

I have reinstalled debian 8. I left my /home partition intact. I hope that is ok.
I am now going to install iRedMail again

36

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

You can close this thread.
iRedMail is up and running.
Re install of OS and install of iRedmail worked.
Now it is time to learn all about this system. Make some tweaks.

37

Re: iRedMail 0.9.2 installed but won't run in Debian Jessie

We have documents here:
http://www.iredmail.org/docs/

If you're confused about something, or you need a new document to explain something, just let us know. i will write it for you.