1

Topic: Just some support on my server randomly stopping.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: N/a
====
Hello guys just got a few issues. I had a problem, where my mail server randomly stops over night, once I reboot the server, it will work with no problems for hours(except still can't get my emails going into spam of big email providers, I'll get to that.)

So my hostname is example.com. However, everything else such as postmaster etc is mail.example.com within the tips file. I can't fully remember how I set it up. My hostname is currently
127.0.1.1 example.com www.example.com
127.0.0.1 localhost

I have also turned off greylisting to try and stop this from happening a few days ago, still randomly stops, and I might add, I tried restarting the service iRedAPD. When I did that, it didn't fix it, I have to fully reboot the server to get the mail back up.

What should my mx record be? example.com or mail.example.com?

Going to the spam thing, I am struggling setting up my DKIM key, I used digitalocean as you probably guessed, I added the DKIM key, but didn't solve it, I also believe I have done the SPF key correctly, but my DKIM key with Iredmail has quotation marks and forward slashes that are split between keys, something that I haven't seen it set up tutorials. Really unsure of this.
I hope you guys can help me!


I just want to say to the admins and I believe Mr Zhang, this project is amazing, I am just an idiot. Really new to all this Back end stuff.

Thank you so much for taking the time to read this smile)

----

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

2

Re: Just some support on my server randomly stopping.

The bottom bit is the hosts* file sorry!

3

Re: Just some support on my server randomly stopping.

What do you mean "stop"? Cannot send email? cannot retrieve email via POP3 or IMAP? Any error in Postfix/Dovecot log files?

4

Re: Just some support on my server randomly stopping.

Both, I cannot send or recieve, I have to reboot the server to get it to work again, I don't know if its anything to do with the records or? I'll check the logs now.

5

Re: Just some support on my server randomly stopping.

Aug 14 06:25:28 reqticorp postfix/smtpd[7759]: connect from localhost[127.0.0.1]
Aug 14 06:25:28 reqticorp postfix/trivial-rewrite[7712]: warning: do not list domain reqticorp.com in BOTH mydestination and virtual_mailbox_domains
Aug 14 06:25:28 reqticorp postfix/smtpd[7759]: A5792120185: client=localhost[127.0.0.1]
Aug 14 06:25:28 reqticorp postfix/cleanup[7710]: A5792120185: message-id=<20160814102508.14251120BC8@reqticorp.com>
Aug 14 06:25:28 reqticorp postfix/smtpd[7759]: disconnect from localhost[127.0.0.1]
Aug 14 06:25:28 reqticorp postfix/qmgr[1716]: A5792120185: from=<root@reqticorp.com>, size=65555, nrcpt=1 (queue active)
Aug 14 06:25:28 reqticorp amavis[1471]: (01471-09) Passed UNCHECKED {RelayedInbound},  -> , Message-ID: , mail_id: 3YWbQuR9DniM, Hits: 0, size: 65049, queued_as: A5792120185, 20584 ms, Tests: [NO_RELAYS=-0.001,URIBL_BLOCKED=0.001]
Aug 14 06:25:28 reqticorp postfix/smtp[7718]: 14251120BC8: to=<root@reqticorp.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=23, delays=2.3/0.02/0.03/21, 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 A5792120185)
Aug 14 06:25:28 reqticorp postfix/qmgr[1716]: 14251120BC8: removed
Aug 14 06:25:28 reqticorp postfix/pipe[7762]: A5792120185: to=<root@reqticorp.com>, relay=dovecot, delay=0.15, delays=0.05/0.01/0/0.08, dsn=5.1.1, status=bounced (user unknown)
Aug 14 06:25:28 reqticorp postfix/cleanup[7710]: C9B78120BC9: message-id=<20160814102528.C9B78120BC9@reqticorp.com>
Aug 14 06:25:28 reqticorp postfix/qmgr[1716]: C9B78120BC9: from=<>, size=2696, nrcpt=1 (queue active)
Aug 14 06:25:28 reqticorp postfix/bounce[7769]: A5792120185: sender non-delivery notification: C9B78120BC9
Aug 14 06:25:28 reqticorp postfix/qmgr[1716]: A5792120185: removed
Aug 14 06:25:28 reqticorp postfix/pipe[7762]: C9B78120BC9: to=<root@reqticorp

6

Re: Just some support on my server randomly stopping.

reqtified wrote:

Aug 14 06:25:28 reqticorp postfix/trivial-rewrite[7712]: warning: do not list domain reqticorp.com in BOTH mydestination and virtual_mailbox_domains

Please fix this error first.

You'd better use a different server hostname instead of 'reqticorp.com'. We have a short tutorial to help you change server hostname:
http://www.iredmail.org/docs/change.ser … tname.html

7

Re: Just some support on my server randomly stopping.

Okay, I did that yesterday and the server ran for a fair bit longer, however. I did a test this morning at 12:57, I sent an email to my email address, the email didn't come through at all, but what I did; instead of rebooting the server, I used http://mxtoolbox.com/ to do a test of my domain, once that test finished, the emails just suddenly came through. This was around 18:00.





Aug 15 12:17:16 mail postfix/postscreen[12263]: DNSBL rank 2 for [189.209.180.242]:4497
Aug 15 12:17:17 mail postfix/postscreen[12263]: DISCONNECT [189.209.180.242]:4497
Aug 15 12:29:49 mail postfix/postscreen[12308]: CONNECT from [106.120.81.123]:52777 to [178.62.119.71]:25
Aug 15 12:29:55 mail postfix/postscreen[12308]: PASS OLD [106.120.81.123]:52777
Aug 15 12:29:55 mail postfix/smtpd[12311]: connect from unknown[106.120.81.123]
Aug 15 12:29:56 mail postfix/smtpd[12311]: disconnect from unknown[106.120.81.123]
Aug 15 12:33:16 mail postfix/anvil[12313]: statistics: max connection rate 1/60s for (smtpd:106.120.81.123) at Aug 15 12:29:55
Aug 15 12:33:16 mail postfix/anvil[12313]: statistics: max connection count 1 for (smtpd:106.120.81.123) at Aug 15 12:29:55
Aug 15 12:33:16 mail postfix/anvil[12313]: statistics: max cache size 1 at Aug 15 12:29:55
Aug 15 12:42:46 mail postfix/postscreen[12363]: CONNECT from [191.99.152.135]:49875 to [178.62.119.71]:25
Aug 15 12:42:46 mail postfix/postscreen[12363]: PASS OLD [191.99.152.135]:49875
Aug 15 12:42:46 mail postfix/smtpd[12366]: connect from unknown[191.99.152.135]
Aug 15 12:42:47 mail postfix/smtpd[12366]: disconnect from unknown[191.99.152.135]
Aug 15 12:44:46 mail postfix/smtp[12369]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Aug 15 12:44:46 mail postfix/smtp[12369]: 7AB8A120BE8: to=<zak@reqticorp.com>, relay=none, delay=17261, delays=17261/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Aug 15 12:45:55 mail amavis[971]: starting. /usr/sbin/amavisd-new at reqticorp.com amavisd-new-2.7.1 (20120429), Unicode aware
Aug 15 12:45:55 mail amavis[1126]: Net::Server: Group Not Defined.  Defaulting to EGID '121 121'
Aug 15 12:45:55 mail amavis[1126]: Net::Server: User Not Defined.  Defaulting to EUID '111'
Aug 15 12:45:55 mail amavis[1126]: Module Amavis::Conf        2.303
Aug 15 12:45:55 mail amavis[1126]: Module Archive::Zip        1.30
Aug 15 12:45:55 mail amavis[1126]: Module BerkeleyDB          0.54
Aug 15 12:45:55 mail amavis[1126]: Module Compress::Zlib      2.06
Aug 15 12:45:55 mail amavis[1126]: Module Convert::TNEF       0.18
Aug 15 12:45:55 mail amavis[1126]: Module Convert::UUlib      1.4
Aug 15 12:45:55 mail amavis[1126]: Module Crypt::OpenSSL::RSA 0.28
Aug 15 12:45:55 mail amavis[1126]: Module DBD::mysql          4.025
Aug 15 12:45:55 mail amavis[1126]: Module DBI                 1.63
Aug 15 12:45:55 mail amavis[1126]: Module DB_File             1.827
Aug 15 12:45:55 mail amavis[1126]: Module Digest::MD5         2.52
Aug 15 12:45:55 mail amavis[1126]: Module Digest::SHA         5.84_01
Aug 15 12:45:55 mail amavis[1126]: Module File::Temp          0.23
Aug 15 12:45:55 mail amavis[1126]: Module IO::Socket::INET6   2.71
Aug 15 12:45:55 mail amavis[1126]: Module MIME::Entity        5.505
Aug 15 12:45:55 mail amavis[1126]: Module MIME::Parser        5.505
Aug 15 12:45:55 mail amavis[1126]: Module MIME::Tools         5.505
Aug 15 12:45:55 mail amavis[1126]: Module Mail::DKIM::Signer  0.4
Aug 15 12:45:55 mail amavis[1126]: Module Mail::DKIM::Verifier 0.4
Aug 15 12:45:55 mail amavis[1126]: Module Mail::Header        2.12
Aug 15 12:45:55 mail amavis[1126]: Module Mail::Internet      2.12
Aug 15 12:45:55 mail amavis[1126]: Module Mail::SPF           v2.009
Aug 15 12:45:55 mail amavis[1126]: Module Mail::SpamAssassin  3.004000
Aug 15 12:45:55 mail amavis[1126]: Module Net::DNS            0.68
Aug 15 12:45:55 mail amavis[1126]: Module Net::Server         2.007
Aug 15 12:45:55 mail amavis[1126]: Module NetAddr::IP         4.071
Aug 15 12:45:55 mail amavis[1126]: Module Socket6             0.25
Aug 15 12:45:55 mail amavis[1126]: Module Time::HiRes         1.9725
Aug 15 12:45:55 mail amavis[1126]: Module URI                 1.60
Aug 15 12:45:55 mail amavis[1126]: Module Unix::Syslog        1.1
Aug 15 12:45:55 mail amavis[1126]: Amavis::DB code      loaded
Aug 15 12:45:55 mail amavis[1126]: SQL base code        loaded
Aug 15 12:45:55 mail amavis[1126]: SQL::Log code        loaded
Aug 15 12:45:55 mail amavis[1126]: SQL::Quarantine      loaded
Aug 15 12:45:55 mail amavis[1126]: Lookup::SQL code     loaded
Aug 15 12:45:55 mail amavis[1126]: Lookup::LDAP code    NOT loaded
Aug 15 12:45:55 mail amavis[1126]: AM.PDP-in proto code loaded
Aug 15 12:45:55 mail amavis[1126]: SMTP-in proto code   loaded
Aug 15 12:45:55 mail amavis[1126]: Courier proto code   NOT loaded
Aug 15 12:45:55 mail amavis[1126]: SMTP-out proto code  loaded
Aug 15 12:45:55 mail amavis[1126]: Pipe-out proto code  NOT loaded
Aug 15 12:45:55 mail amavis[1126]: BSMTP-out proto code NOT loaded
Aug 15 12:45:55 mail amavis[1126]: Local-out proto code NOT loaded
Aug 15 12:45:55 mail amavis[1126]: OS_Fingerprint code  NOT loaded
Aug 15 12:45:55 mail amavis[1126]: ANTI-VIRUS code      loaded
Aug 15 12:45:55 mail amavis[1126]: ANTI-SPAM code       loaded
Aug 15 12:45:55 mail amavis[1126]: ANTI-SPAM-EXT code   NOT loaded
Aug 15 12:45:55 mail amavis[1126]: ANTI-SPAM-C code     NOT loaded
Aug 15 12:45:55 mail amavis[1126]: ANTI-SPAM-SA code    loaded
Aug 15 12:45:55 mail amavis[1126]: Unpackers code       loaded
Aug 15 12:45:55 mail amavis[1126]: DKIM code            loaded
Aug 15 12:45:55 mail amavis[1126]: Tools code           NOT loaded
Aug 15 12:45:55 mail amavis[1126]: Found $file            at /usr/bin/file
Aug 15 12:45:55 mail amavis[1126]: Found $altermime       at /usr/bin/altermime
Aug 15 12:45:55 mail amavis[1126]: Internal decoder for .mail
Aug 15 12:45:55 mail amavis[1126]: No decoder for       .F   
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .Z    at /bin/uncompress
Aug 15 12:45:55 mail amavis[1126]: Internal decoder for .gz 
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .bz2  at /bin/bzip2 -d
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .xz   at /usr/bin/xz -dc
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .lzma at /usr/bin/xz -dc --format=lzma
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .lzo  at /usr/bin/lzop -d
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .cpio at /bin/pax
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .tar  at /bin/pax
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .deb  at /usr/bin/ar
Aug 15 12:45:55 mail amavis[1126]: Internal decoder for .zip
Aug 15 12:45:55 mail amavis[1126]: Internal decoder for .kmz
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .7z   at /usr/bin/7zr
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .rar  at /usr/bin/unrar-free
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .arj  at /usr/bin/arj
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .arc  at /usr/bin/nomarch
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .zoo  at /usr/bin/zoo
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .doc  at /usr/bin/ripole
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .cab  at /usr/bin/cabextract
Aug 15 12:45:55 mail amavis[1126]: No decoder for       .tnef
Aug 15 12:45:55 mail amavis[1126]: Internal decoder for .tnef
Aug 15 12:45:55 mail amavis[1126]: Found decoder for    .exe  at /usr/bin/unrar-free; /usr/bin/arj
Aug 15 12:45:55 mail amavis[1126]: Using primary internal av scanner code for ClamAV-clamd
Aug 15 12:45:55 mail amavis[1126]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Aug 15 12:45:55 mail amavis[1126]: Deleting db files __db.002,snmp.db,__db.001,__db.003,nanny.db in /var/lib/amavis/db
Aug 15 12:45:55 mail amavis[1126]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.54, libdb 5.3
Aug 15 12:46:08 mail postfix/master[1714]: daemon started -- version 2.11.0, configuration /etc/postfix
Aug 15 12:46:11 mail postfix/postscreen[1855]: CONNECT from [155.133.82.200]:53803 to [178.62.119.71]:25
Aug 15 12:46:11 mail postfix/postscreen[1855]: PASS OLD [155.133.82.200]:53803
Aug 15 12:46:11 mail postfix/smtpd[1870]: connect from unknown[155.133.82.200]
Aug 15 12:46:11 mail postfix/smtpd[1870]: lost connection after AUTH from unknown[155.133.82.200]
Aug 15 12:46:11 mail postfix/smtpd[1870]: disconnect from unknown[155.133.82.200]
Aug 15 12:49:32 mail postfix/anvil[1881]: statistics: max connection rate 1/60s for (smtpd:155.133.82.200) at Aug 15 12:46:11
Aug 15 12:49:32 mail postfix/anvil[1881]: statistics: max connection count 1 for (smtpd:155.133.82.200) at Aug 15 12:46:11
Aug 15 12:49:32 mail postfix/anvil[1881]: statistics: max cache size 1 at Aug 15 12:46:11
Aug 15 12:53:42 mail postfix/postscreen[2024]: CONNECT from [155.133.82.200]:63543 to [178.62.119.71]:25
Aug 15 12:53:42 mail postfix/postscreen[2024]: PASS OLD [155.133.82.200]:63543
Aug 15 12:53:42 mail postfix/smtpd[2025]: connect from unknown[155.133.82.200]
Aug 15 12:53:42 mail postfix/smtpd[2025]: lost connection after AUTH from unknown[155.133.82.200]
Aug 15 12:53:42 mail postfix/smtpd[2025]: disconnect from unknown[155.133.82.200]
Aug 15 12:53:45 mail postfix/postscreen[2024]: CONNECT from [203.124.141.147]:58616 to [178.62.119.71]:25
Aug 15 12:53:45 mail postfix/postscreen[2024]: PASS OLD [203.124.141.147]:58616
Aug 15 12:53:45 mail postfix/smtpd[2025]: connect from unknown[203.124.141.147]
Aug 15 12:53:46 mail postfix/smtpd[2025]: disconnect from unknown[203.124.141.147]
Aug 15 12:55:13 mail postfix/postscreen[2024]: CONNECT from [122.227.189.211]:1920 to [178.62.119.71]:25
Aug 15 12:55:13 mail postfix/postscreen[2024]: HANGUP after 0 from [122.227.189.211]:1920 in tests before SMTP handshake
Aug 15 12:55:13 mail postfix/postscreen[2024]: DISCONNECT [122.227.189.211]:1920
Aug 15 12:57:06 mail postfix/anvil[2027]: statistics: max connection rate 1/60s for (smtpd:155.133.82.200) at Aug 15 12:53:42
Aug 15 12:57:06 mail postfix/anvil[2027]: statistics: max connection count 1 for (smtpd:155.133.82.200) at Aug 15 12:53:42
Aug 15 12:57:06 mail postfix/anvil[2027]: statistics: max cache size 2 at Aug 15 12:53:45

8

Re: Just some support on my server randomly stopping.

reqtified wrote:

Aug 15 12:44:46 mail postfix/smtp[12369]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Amavisd service was not running. Although you restarted it, please make sure it's actually running.