1 (edited by LuizC 2020-06-18 05:48:16)

Topic: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? Downloadable
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PG
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi There everyone!

After some come-and-go and a lot of help from this forum I managed to have an ALMOST working installation of iRedMail.

I would like to share with you my steps and ask for a final tip :-)

1) The fisrt step was to setup a fresh VPS instalation. Due the amount of setups and applications involved, the best way to start is to have a newborn, completelly clean server, with a FQDN. Most of VPS providers automatically set an FQDN in the moment the server is onlinwe. It will important, make sure about it.

2) Download the classical installer and follow the instructions:
https://docs.iredmail.org/install.iredm … buntu.html

ATTENTION: in the "Add your first mail domain name" part, be sure to use you final domain (in my case, botboutique.com.br) - that will be the email adress for your users, like <user>@that.domain.com. That's the reason why your VPS must have a FQDN: you can't use the same name for it.

3a) Now, we're gonna use Cloudflare to manage our DNS. It's just a suggestion but doing this will save some time and it offers a shortcut to deal with ssl with no pain. More than that, I guess that it can provide a "common ground instructions" to follow for every newcomer like me, taking care of installing an SSL cert and setting up correctly all DNS records.

3b) Open a free account in Cloudflare. In the "overview" section, look in the lower right corner a link called "Get Your API Token". Create a token and save it for the next step. If you feel intimidated by the options, copy the Global API key (not the best practice, but it works).

4) Back to your server, apt-get install "python3-certbot-dns-cloudflare". This will install the Cloudflare's custom cert script, plus Cerbot itself.

5a) Create this file with your Cloudflare's credentials:
nano /etc/letsencrypt/cloudflare.passwd

5b) With this content/credentials:
dns_cloudflare_email = youraccountemail@used.in.cloudflare 
dns_cloudflare_api_key = yourapikeycopiedinpreviousstep

5c) Change mod it:
chmod 600 /etc/letsencrypt/cloudflare.passwd

5d) Fire!
certbot certonly --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/cloudflare.passwd -d yourdomain.tld -d *.yourdomain.tld

6) With no error occured, time to link the new cert to the iRedMail install (using instruction found here: https://docs.iredmail.org/letsencrypt.h … bol-links) usig this four comands:
6a) mv /etc/ssl/certs/iRedMail.crt{,.bak}       
6b) mv /etc/ssl/private/iRedMail.key{,.bak}
6c) ln -s /etc/letsencrypt/live/mail.mydomain.com/fullchain.pem /etc/ssl/certs/iRedMail.crt
6d) ln -s /etc/letsencrypt/live/mail.mydomain.com/privkey.pem /etc/ssl/private/iRedMail.key

7) Now, heads up to configure your DNS (my complete TXT setup is "v=spf1 a mx ip4:191.252.196.107 ~al") and I keep everything "DNS only" but some services could be proxied but I didn't get this deeper :-)
(image)

8) And as a final step if you'll use this VPS as your sole server to serve your HTML pages and web apps (like NodeJS processes), you must to edit the index.html in /var/www/html. Otherwise, all requisitions to your domain goes to <yourdomain>/mail. If you have a big load of emails, consider have a server only for mail service.

Now, we can test :-)

But as I said, it's ALMOST perfect.

In my case I can receive emails but I can't send.

Please, help this noob to make it works perfectly :-)

DISCLAIMER: that post won't be possible without all the help that I received here in this forum, thanks a lot!

Post's attachments

Screenshot_2020-06-16 DNS botboutique com br Account Cloudflare - Web Performance Security.png
Screenshot_2020-06-16 DNS botboutique com br Account Cloudflare - Web Performance Security.png 33.71 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

LuizC wrote:

a) I can receive emails but I can't send;
b) I couldn't found where to configure Ngnix to DON'T force requisitions that arrives in botbotboutique.com.br be redirected to botbotboutique.com.br/mail

Hi Luiz, nice to hear that you were able to make some progress and are receiving mails smile

a) Share with us the related logs that appear when you send an email from your server
tail -f /var/log/mail.log and then send a message to see the logs.
b) In the default configuration Nginx doesn't serve anything on the domain root, the redirect is because it assumes that most likely you are going to webmail as an end-user, thus if we want to login as admin then we go directly to https://domain.tld/iredadmin (no redirects)
Are you trying to serve a regular website at botbotboutique.com.br and thus don't want it redirecting to /mail?

3 (edited by LuizC 2020-06-18 06:50:29)

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

LuizC wrote:
MuPp3t33r wrote:

a) Share with us the related logs that appear when you send an email from your server

Here it is. It's divided in 3 different sessions, loging in as webmaster@bot... and postmaster@bot... and write an email from luiz@mentalmarketing.com.br (received) and tryied to reply (failed).

==============================================================================================

root@vps22253:~# tail -f /var/log/mail.log
Jun 17 17:15:26 vps22253 postfix/smtp[128647]: connect to aspmx.l.google.com[172.217.192.27]:25: Connection timed out
Jun 17 17:15:26 vps22253 postfix/smtp[128647]: 49m6Xb5hbPz45m1: to=<luiz@mentalmarketing.com.br>, relay=none, delay=162223, delays=162192/0.56/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[172.217.192.27]:25: Connection timed out)
Jun 17 17:24:55 vps22253 postfix/qmgr[3134]: 49m5Cz15cLz45lY: from=<webmaster@botboutique.com.br>, size=1190587, nrcpt=1 (queue active)
Jun 17 17:25:26 vps22253 postfix/smtp[129533]: connect to aspmx.l.google.com[64.233.186.27]:25: Connection timed out
Jun 17 17:25:26 vps22253 postfix/smtp[129533]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable
Jun 17 17:25:26 vps22253 postfix/smtp[129533]: 49m5Cz15cLz45lY: to=<luiz@mentalmarketing.com.br>, relay=none, delay=166392, delays=166361/0.69/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable)
Jun 17 17:29:55 vps22253 postfix/qmgr[3134]: 49m68q2Jykz45lb: from=<webmaster@botboutique.com.br>, size=1927, nrcpt=1 (queue active)
Jun 17 17:29:56 vps22253 postfix/smtp[129975]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Jun 17 17:30:26 vps22253 postfix/smtp[129975]: connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out
Jun 17 17:30:26 vps22253 postfix/smtp[129975]: 49m68q2Jykz45lb: to=<luiz@mentalmarketing.com.br>, relay=none, delay=164151, delays=164120/0.67/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out)


=====================================


Jun 17 17:50:49 vps22253 postfix/submission/smtpd[1631]: connect from localhost[127.0.0.1]
Jun 17 17:50:49 vps22253 postfix/submission/smtpd[1631]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Jun 17 17:50:52 vps22253 postfix/submission/smtpd[1631]: 49nHK82hFtz421x: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@botboutique.com.br
Jun 17 17:50:53 vps22253 postfix/cleanup[1647]: 49nHK82hFtz421x: message-id=<454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br>
Jun 17 17:50:53 vps22253 postfix/qmgr[3134]: 49nHK82hFtz421x: from=<postmaster@botboutique.com.br>, size=970, nrcpt=1 (queue active)
Jun 17 17:50:53 vps22253 roundcube: <ijekq6pd> User postmaster@botboutique.com.br [170.231.96.9]; Message <454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br> for luiz@mentalmarketing.com.br; 250: 2.0.0 Ok: queued as 49nHK82hFtz421x
Jun 17 17:50:53 vps22253 postfix/submission/smtpd[1631]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jun 17 17:50:59 vps22253 amavis[73816]: (73816-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 17:51:00 vps22253 amavis[73816]: (73816-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 17:51:00 vps22253 amavis[73816]: (73816-03) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jun 17 17:51:06 vps22253 amavis[73816]: (73816-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 17:51:06 vps22253 amavis[73816]: (73816-03) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 113) line 659.\n
Jun 17 17:51:06 vps22253 amavis[73816]: (73816-03) (!)WARN: all primary virus scanners failed, considering backups
Jun 17 17:55:49 vps22253 amavis[73816]: (73816-03) (!)terminating process [1705] running clamav-clamscan (reason: on reading: timed out)
Jun 17 17:55:49 vps22253 amavis[73816]: (73816-03) (!)run_av (clamav-clamscan): collect_results - reading aborted: timed out at /usr/sbin/amavisd-new line 5121.
Jun 17 17:55:50 vps22253 amavis[73816]: (73816-03) (!)clamav-clamscan av-scanner FAILED: run_av error: Exceeded allowed time\n
Jun 17 17:55:50 vps22253 amavis[73816]: (73816-03) (!!)AV: ALL VIRUS SCANNERS FAILED
Jun 17 17:55:58 vps22253 postfix/10025/smtpd[2327]: connect from localhost[127.0.0.1]
Jun 17 17:56:00 vps22253 postfix/10025/smtpd[2327]: 49nHR44vqSz45bS: client=localhost[127.0.0.1]
Jun 17 17:56:01 vps22253 postfix/cleanup[2336]: 49nHR44vqSz45bS: message-id=<454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br>
Jun 17 17:56:01 vps22253 postfix/10025/smtpd[2327]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun 17 17:56:01 vps22253 postfix/qmgr[3134]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 17:56:01 vps22253 amavis[73816]: (73816-03) Passed UNCHECKED {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:38046 ESMTP/ESMTP <postmaster@botboutique.com.br> -> <luiz@mentalmarketing.com.br>, (), Queue-ID: 49nHK82hFtz421x, Message-ID: <454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br>, mail_id: 69cdOWB3VolD, b: pIp1RlmTu, Hits: -1, size: 990, queued_as: 49nHR44vqSz45bS, Subject: "Re: Vc me ouve?", From: <postmaster@botboutique.com.br>, User-Agent: Roundcube_Webmail, helo=localhost, Tests: [ALL_TRUSTED=-1], autolearn=ham autolearn_force=no, autolearnscore=0, dkim_new=dkim:botboutique.com.br, 306582 ms
Jun 17 17:56:01 vps22253 postfix/amavis/smtp[1653]: 49nHK82hFtz421x: to=<luiz@mentalmarketing.com.br>, relay=127.0.0.1[127.0.0.1]:10026, delay=312, delays=3.3/0.86/1.6/306, 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 49nHR44vqSz45bS)
Jun 17 17:56:01 vps22253 postfix/qmgr[3134]: 49nHK82hFtz421x: removed
Jun 17 17:56:31 vps22253 postfix/smtp[2337]: connect to aspmx.l.google.com[172.217.192.26]:25: Connection timed out
Jun 17 17:56:31 vps22253 postfix/smtp[2337]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1b]:25: Network is unreachable
Jun 17 17:56:31 vps22253 postfix/smtp[2337]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=31, delays=0.89/0.14/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c01::1b]:25: Network is unreachable)
Jun 17 18:04:55 vps22253 postfix/qmgr[3134]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 18:05:26 vps22253 postfix/smtp[3280]: connect to aspmx.l.google.com[172.217.192.27]:25: Connection timed out
Jun 17 18:05:26 vps22253 postfix/smtp[3280]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Jun 17 18:05:26 vps22253 postfix/smtp[3280]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=567, delays=536/0.82/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable)
Jun 17 18:05:52 vps22253 postfix/postscreen[3315]: CONNECT from [122.228.19.79]:62405 to [191.252.196.107]:25
Jun 17 18:05:52 vps22253 postfix/dnsblog[3316]: addr 122.228.19.79 listed by domain b.barracudacentral.org as 127.0.0.2
Jun 17 18:05:52 vps22253 postfix/dnsblog[3317]: addr 122.228.19.79 listed by domain zen.spamhaus.org as 127.0.0.4
Jun 17 18:05:52 vps22253 postfix/postscreen[3315]: PREGREET 9 after 0.53 from [122.228.19.79]:62405: EHLO []\r\n
Jun 17 18:05:52 vps22253 postfix/postscreen[3315]: DISCONNECT [122.228.19.79]:62405
Jun 17 18:14:55 vps22253 postfix/qmgr[3134]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 18:14:56 vps22253 postfix/smtp[4376]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1b]:25: Network is unreachable
Jun 17 18:15:26 vps22253 postfix/smtp[4376]: connect to aspmx.l.google.com[64.233.190.27]:25: Connection timed out
Jun 17 18:15:27 vps22253 postfix/smtp[4376]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=1167, delays=1136/1.1/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.190.27]:25: Connection timed out)


===============================================================


Jun 17 18:33:14 vps22253 amavis[2223]: No decoder for       .zoo
Jun 17 18:33:14 vps22253 amavis[2223]: Using primary internal av scanner code for clamav-socket
Jun 17 18:33:14 vps22253 amavis[2223]: Found secondary av scanner clamav-clamscan at /usr/bin/clamscan
Jun 17 18:33:14 vps22253 postfix/postfix-script[2446]: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/iRedMail_CA_PostgreSQL.pem
Jun 17 18:33:14 vps22253 postfix/postfix-script[2644]: starting the Postfix mail system
Jun 17 18:33:14 vps22253 postfix/master[2646]: daemon started -- version 3.3.0, configuration /etc/postfix
Jun 17 18:33:14 vps22253 postfix/qmgr[2651]: 49m5Cz15cLz45lY: from=<webmaster@botboutique.com.br>, size=1190587, nrcpt=1 (queue active)
Jun 17 18:33:15 vps22253 postfix/smtp[2752]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable
Jun 17 18:33:45 vps22253 postfix/smtp[2752]: connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out
Jun 17 18:33:45 vps22253 postfix/smtp[2752]: 49m5Cz15cLz45lY: to=<luiz@mentalmarketing.com.br>, relay=none, delay=170490, delays=170458/2/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out)
Jun 17 18:39:03 vps22253 postfix/qmgr[2651]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 18:39:03 vps22253 postfix/qmgr[2651]: 49m68q2Jykz45lb: from=<webmaster@botboutique.com.br>, size=1927, nrcpt=1 (queue active)
Jun 17 18:39:03 vps22253 postfix/smtp[4513]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable
Jun 17 18:39:35 vps22253 postfix/smtp[4496]: connect to aspmx.l.google.com[172.217.192.26]:25: Connection timed out
Jun 17 18:39:35 vps22253 postfix/smtp[4496]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Jun 17 18:39:36 vps22253 postfix/smtp[4513]: connect to aspmx.l.google.com[64.233.186.27]:25: Connection timed out
Jun 17 18:39:37 vps22253 postfix/smtp[4496]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=2614, delays=2536/47/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable)
Jun 17 18:39:40 vps22253 postfix/smtp[4513]: 49m68q2Jykz45lb: to=<luiz@mentalmarketing.com.br>, relay=none, delay=168299, delays=168268/0.55/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.186.27]:25: Connection timed out)
Jun 17 18:53:16 vps22253 postfix/postscreen[7130]: CONNECT from [209.85.222.170]:38592 to [191.252.196.107]:25
Jun 17 18:53:22 vps22253 postfix/postscreen[7130]: PASS NEW [209.85.222.170]:38592
Jun 17 18:53:22 vps22253 postfix/smtpd[7134]: connect from mail-qk1-f170.google.com[209.85.222.170]
Jun 17 18:53:23 vps22253 postfix/smtpd[7134]: Anonymous TLS connection established from mail-qk1-f170.google.com[209.85.222.170]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
Jun 17 18:53:24 vps22253 postfix/smtpd[7134]: 49nJjJ6Wbmz3wKH: client=mail-qk1-f170.google.com[209.85.222.170]
Jun 17 18:53:25 vps22253 postfix/cleanup[7153]: 49nJjJ6Wbmz3wKH: message-id=<CAL8G17HNnAsQhK+iPdS4=DRc+uPCorAJrW4yLX8aMX4DxeA81A@mail.gmail.com>
Jun 17 18:53:25 vps22253 postfix/qmgr[2651]: 49nJjJ6Wbmz3wKH: from=<luiz@mentalmarketing.com.br>, size=3063, nrcpt=1 (queue active)
Jun 17 18:53:25 vps22253 postfix/smtpd[7134]: disconnect from mail-qk1-f170.google.com[209.85.222.170] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Jun 17 18:53:27 vps22253 amavis[3760]: (03760-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:53:28 vps22253 amavis[3760]: (03760-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:53:28 vps22253 amavis[3760]: (03760-01) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jun 17 18:53:34 vps22253 amavis[3760]: (03760-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:53:34 vps22253 amavis[3760]: (03760-01) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 113) line 659.\n
Jun 17 18:53:34 vps22253 amavis[3760]: (03760-01) (!)WARN: all primary virus scanners failed, considering backups
Jun 17 18:56:45 vps22253 postfix/anvil[7137]: statistics: max connection rate 1/60s for (smtpd:209.85.222.170) at Jun 17 18:53:22
Jun 17 18:56:45 vps22253 postfix/anvil[7137]: statistics: max connection count 1 for (smtpd:209.85.222.170) at Jun 17 18:53:22
Jun 17 18:56:45 vps22253 postfix/anvil[7137]: statistics: max cache size 1 at Jun 17 18:53:22
Jun 17 18:58:18 vps22253 amavis[3760]: (03760-01) (!)terminating process [7197] running clamav-clamscan (reason: on reading: timed out)
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!)process [7197] running clamav-clamscan is still alive, using a bigger hammer (SIGKILL)
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!)run_av (clamav-clamscan): collect_results - reading aborted: timed out at /usr/sbin/amavisd-new line 5121.
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!)clamav-clamscan av-scanner FAILED: run_av error: Exceeded allowed time\n
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!!)AV: ALL VIRUS SCANNERS FAILED
Jun 17 18:58:22 vps22253 postfix/10025/smtpd[7705]: connect from localhost[127.0.0.1]
Jun 17 18:58:22 vps22253 postfix/10025/smtpd[7705]: 49nJq25JxHz45mF: client=localhost[127.0.0.1]
Jun 17 18:58:22 vps22253 postfix/cleanup[7713]: 49nJq25JxHz45mF: message-id=<CAL8G17HNnAsQhK+iPdS4=DRc+uPCorAJrW4yLX8aMX4DxeA81A@mail.gmail.com>
Jun 17 18:58:23 vps22253 postfix/10025/smtpd[7705]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun 17 18:58:23 vps22253 postfix/qmgr[2651]: 49nJq25JxHz45mF: from=<luiz@mentalmarketing.com.br>, size=3764, nrcpt=1 (queue active)
Jun 17 18:58:23 vps22253 amavis[3760]: (03760-01) Passed UNCHECKED {RelayedInbound}, [209.85.222.170]:38592 [209.85.222.170] ESMTP/ESMTP <luiz@mentalmarketing.com.br> -> <webmaster@botboutique.com.br>, (ESMTPS://[209.85.222.170]:38592), Queue-ID: 49nJjJ6Wbmz3wKH, Message-ID: <CAL8G17HNnAsQhK+iPdS4=DRc+uPCorAJrW4yLX8aMX4DxeA81A@mail.gmail.com>, mail_id: 8CGWhSbmbqE9, b: mEt5R85JG, Hits: 0.002, size: 3063, queued_as: 49nJq25JxHz45mF, Subject: "Tá por aí, Mann? (raw: =?UTF-8?B?VMOhIHBvciBhw60sIE1hbm4/?=)", From: <luiz@mentalmarketing.com.br>, helo=mail-qk1-f170.google.com, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HTML_MESSAGE=0.001,RCVD_IN_MSPIKE_H2=-0.001,SPF_HELO_NONE=0.001,SPF_NONE=0.001], autolearn=ham autolearn_force=no, autolearnscore=0.002, dkim_i=@mentalmarketing-com-br.20150623.gappssmtp.com, dkim_sd=20150623:mentalmarketing-com-br.20150623.gappssmtp.com, 297576 ms
Jun 17 18:58:23 vps22253 postfix/pipe[7714]: 49nJq25JxHz45mF: to=<webmaster@botboutique.com.br>, relay=dovecot, delay=0.87, delays=0.24/0.07/0/0.56, dsn=2.0.0, status=sent (delivered via dovecot service)
Jun 17 18:58:23 vps22253 postfix/qmgr[2651]: 49nJq25JxHz45mF: removed
Jun 17 18:58:23 vps22253 postfix/amavis/smtp[7159]: 49nJjJ6Wbmz3wKH: to=<webmaster@botboutique.com.br>, relay=127.0.0.1[127.0.0.1]:10024, delay=300, delays=1.5/0.13/0.48/298, 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 49nJq25JxHz45mF)
Jun 17 18:58:23 vps22253 postfix/qmgr[2651]: 49nJjJ6Wbmz3wKH: removed
Jun 17 18:59:45 vps22253 postfix/submission/smtpd[7860]: connect from localhost[127.0.0.1]
Jun 17 18:59:45 vps22253 postfix/submission/smtpd[7860]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Jun 17 18:59:46 vps22253 postfix/submission/smtpd[7860]: 49nJrf2Sj5z3wKH: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=webmaster@botboutique.com.br
Jun 17 18:59:46 vps22253 postfix/cleanup[7713]: 49nJrf2Sj5z3wKH: message-id=<33f6539e48461dde8d43c9fd6172881f@botboutique.com.br>
Jun 17 18:59:47 vps22253 roundcube: <sm00va2d> User webmaster@botboutique.com.br [170.231.96.9]; Message <33f6539e48461dde8d43c9fd6172881f@botboutique.com.br> for luiz@mentalmarketing.com.br; 250: 2.0.0 Ok: queued as 49nJrf2Sj5z3wKH
Jun 17 18:59:47 vps22253 postfix/submission/smtpd[7860]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jun 17 18:59:47 vps22253 postfix/qmgr[2651]: 49nJrf2Sj5z3wKH: from=<webmaster@botboutique.com.br>, size=994, nrcpt=1 (queue active)
Jun 17 18:59:50 vps22253 amavis[3760]: (03760-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:59:51 vps22253 amavis[3760]: (03760-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:59:51 vps22253 amavis[3760]: (03760-02) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jun 17 18:59:57 vps22253 amavis[3760]: (03760-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:59:57 vps22253 amavis[3760]: (03760-02) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 113) line 659.\n
Jun 17 18:59:57 vps22253 amavis[3760]: (03760-02) (!)WARN: all primary virus scanners failed, considering backups
Jun 17 19:04:40 vps22253 amavis[3760]: (03760-02) (!)terminating process [7903] running clamav-clamscan (reason: on reading: timed out)
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!)process [7903] running clamav-clamscan is still alive, using a bigger hammer (SIGKILL)
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!)run_av (clamav-clamscan): collect_results - reading aborted: timed out at /usr/sbin/amavisd-new line 5121.
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!)clamav-clamscan av-scanner FAILED: run_av error: Exceeded allowed time\n
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!!)AV: ALL VIRUS SCANNERS FAILED
Jun 17 19:04:45 vps22253 postfix/10025/smtpd[8459]: connect from localhost[127.0.0.1]
Jun 17 19:04:46 vps22253 postfix/10025/smtpd[8459]: 49nJyQ32pJz45mh: client=localhost[127.0.0.1]
Jun 17 19:04:46 vps22253 postfix/cleanup[8468]: 49nJyQ32pJz45mh: message-id=<33f6539e48461dde8d43c9fd6172881f@botboutique.com.br>
Jun 17 19:04:46 vps22253 postfix/10025/smtpd[8459]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun 17 19:04:46 vps22253 postfix/qmgr[2651]: 49nJyQ32pJz45mh: from=<webmaster@botboutique.com.br>, size=2379, nrcpt=1 (queue active)
Jun 17 19:04:47 vps22253 amavis[3760]: (03760-02) Passed UNCHECKED {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:32996 ESMTP/ESMTP <webmaster@botboutique.com.br> -> <luiz@mentalmarketing.com.br>, (), Queue-ID: 49nJrf2Sj5z3wKH, Message-ID: <33f6539e48461dde8d43c9fd6172881f@botboutique.com.br>, mail_id: KRpewjXQ75kR, b: w1BQQe115, Hits: -1, size: 1018, queued_as: 49nJyQ32pJz45mh, Subject: "Re: Tá por aí, Mann? (raw: =?UTF-8?Q?Re=3A_T=C3=A1_por_a=C3=AD=2C_Mann=3F?=)", From: <webmaster@botboutique.com.br>, User-Agent: Roundcube_Webmail, helo=localhost, Tests: [ALL_TRUSTED=-1], autolearn=ham autolearn_force=no, autolearnscore=0, dkim_new=dkim:botboutique.com.br, 299836 ms
Jun 17 19:04:47 vps22253 postfix/amavis/smtp[7159]: 49nJrf2Sj5z3wKH: to=<luiz@mentalmarketing.com.br>, relay=127.0.0.1[127.0.0.1]:10026, delay=302, delays=1.2/0.08/1.2/300, 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 49nJyQ32pJz45mh)
Jun 17 19:04:47 vps22253 postfix/qmgr[2651]: 49nJrf2Sj5z3wKH: removed
Jun 17 19:05:17 vps22253 postfix/smtp[8471]: connect to aspmx.l.google.com[64.233.186.26]:25: Connection timed out
Jun 17 19:05:17 vps22253 postfix/smtp[8471]: connect to aspmx.l.google.com[2800:3f0:4003:c00::1b]:25: Network is unreachable
Jun 17 19:05:17 vps22253 postfix/smtp[8471]: 49nJyQ32pJz45mh: to=<luiz@mentalmarketing.com.br>, relay=none, delay=31, delays=0.25/0.27/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c00::1b]:25: Network is unreachable)



===============================================================================================

MuPp3t33r wrote:

Are you trying to serve a regular website at botboutique.com.br and thus don't want it redirecting to /mail?

Yes, but the solution is easy, I edited the post and put an extra step (number 8) - it's just the case to modify the /var/www/html/index.html file.

Thanks again!

Ps: a VPS with only 512MB of RAM and just one vCPU cries a lot to run the service (hahaha)

4

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

LuizC wrote:
LuizC wrote:
MuPp3t33r wrote:

a) Share with us the related logs that appear when you send an email from your server

Here it is. It's divided in 3 different sessions, loging in as webmaster@bot... and postmaster@bot... and write an email from luiz@mentalmarketing.com.br (received) and tryied to reply (failed).

==============================================================================================

root@vps22253:~# tail -f /var/log/mail.log
Jun 17 17:15:26 vps22253 postfix/smtp[128647]: connect to aspmx.l.google.com[172.217.192.27]:25: Connection timed out
Jun 17 17:15:26 vps22253 postfix/smtp[128647]: 49m6Xb5hbPz45m1: to=<luiz@mentalmarketing.com.br>, relay=none, delay=162223, delays=162192/0.56/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[172.217.192.27]:25: Connection timed out)
Jun 17 17:24:55 vps22253 postfix/qmgr[3134]: 49m5Cz15cLz45lY: from=<webmaster@botboutique.com.br>, size=1190587, nrcpt=1 (queue active)
Jun 17 17:25:26 vps22253 postfix/smtp[129533]: connect to aspmx.l.google.com[64.233.186.27]:25: Connection timed out
Jun 17 17:25:26 vps22253 postfix/smtp[129533]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable
Jun 17 17:25:26 vps22253 postfix/smtp[129533]: 49m5Cz15cLz45lY: to=<luiz@mentalmarketing.com.br>, relay=none, delay=166392, delays=166361/0.69/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable)
Jun 17 17:29:55 vps22253 postfix/qmgr[3134]: 49m68q2Jykz45lb: from=<webmaster@botboutique.com.br>, size=1927, nrcpt=1 (queue active)
Jun 17 17:29:56 vps22253 postfix/smtp[129975]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Jun 17 17:30:26 vps22253 postfix/smtp[129975]: connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out
Jun 17 17:30:26 vps22253 postfix/smtp[129975]: 49m68q2Jykz45lb: to=<luiz@mentalmarketing.com.br>, relay=none, delay=164151, delays=164120/0.67/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out)


=====================================


Jun 17 17:50:49 vps22253 postfix/submission/smtpd[1631]: connect from localhost[127.0.0.1]
Jun 17 17:50:49 vps22253 postfix/submission/smtpd[1631]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Jun 17 17:50:52 vps22253 postfix/submission/smtpd[1631]: 49nHK82hFtz421x: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@botboutique.com.br
Jun 17 17:50:53 vps22253 postfix/cleanup[1647]: 49nHK82hFtz421x: message-id=<454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br>
Jun 17 17:50:53 vps22253 postfix/qmgr[3134]: 49nHK82hFtz421x: from=<postmaster@botboutique.com.br>, size=970, nrcpt=1 (queue active)
Jun 17 17:50:53 vps22253 roundcube: <ijekq6pd> User postmaster@botboutique.com.br [170.231.96.9]; Message <454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br> for luiz@mentalmarketing.com.br; 250: 2.0.0 Ok: queued as 49nHK82hFtz421x
Jun 17 17:50:53 vps22253 postfix/submission/smtpd[1631]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jun 17 17:50:59 vps22253 amavis[73816]: (73816-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 17:51:00 vps22253 amavis[73816]: (73816-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 17:51:00 vps22253 amavis[73816]: (73816-03) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jun 17 17:51:06 vps22253 amavis[73816]: (73816-03) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 17:51:06 vps22253 amavis[73816]: (73816-03) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 113) line 659.\n
Jun 17 17:51:06 vps22253 amavis[73816]: (73816-03) (!)WARN: all primary virus scanners failed, considering backups
Jun 17 17:55:49 vps22253 amavis[73816]: (73816-03) (!)terminating process [1705] running clamav-clamscan (reason: on reading: timed out)
Jun 17 17:55:49 vps22253 amavis[73816]: (73816-03) (!)run_av (clamav-clamscan): collect_results - reading aborted: timed out at /usr/sbin/amavisd-new line 5121.
Jun 17 17:55:50 vps22253 amavis[73816]: (73816-03) (!)clamav-clamscan av-scanner FAILED: run_av error: Exceeded allowed time\n
Jun 17 17:55:50 vps22253 amavis[73816]: (73816-03) (!!)AV: ALL VIRUS SCANNERS FAILED
Jun 17 17:55:58 vps22253 postfix/10025/smtpd[2327]: connect from localhost[127.0.0.1]
Jun 17 17:56:00 vps22253 postfix/10025/smtpd[2327]: 49nHR44vqSz45bS: client=localhost[127.0.0.1]
Jun 17 17:56:01 vps22253 postfix/cleanup[2336]: 49nHR44vqSz45bS: message-id=<454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br>
Jun 17 17:56:01 vps22253 postfix/10025/smtpd[2327]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun 17 17:56:01 vps22253 postfix/qmgr[3134]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 17:56:01 vps22253 amavis[73816]: (73816-03) Passed UNCHECKED {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:38046 ESMTP/ESMTP <postmaster@botboutique.com.br> -> <luiz@mentalmarketing.com.br>, (), Queue-ID: 49nHK82hFtz421x, Message-ID: <454a9535d72a6cbfc42314c92b1f142a@botboutique.com.br>, mail_id: 69cdOWB3VolD, b: pIp1RlmTu, Hits: -1, size: 990, queued_as: 49nHR44vqSz45bS, Subject: "Re: Vc me ouve?", From: <postmaster@botboutique.com.br>, User-Agent: Roundcube_Webmail, helo=localhost, Tests: [ALL_TRUSTED=-1], autolearn=ham autolearn_force=no, autolearnscore=0, dkim_new=dkim:botboutique.com.br, 306582 ms
Jun 17 17:56:01 vps22253 postfix/amavis/smtp[1653]: 49nHK82hFtz421x: to=<luiz@mentalmarketing.com.br>, relay=127.0.0.1[127.0.0.1]:10026, delay=312, delays=3.3/0.86/1.6/306, 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 49nHR44vqSz45bS)
Jun 17 17:56:01 vps22253 postfix/qmgr[3134]: 49nHK82hFtz421x: removed
Jun 17 17:56:31 vps22253 postfix/smtp[2337]: connect to aspmx.l.google.com[172.217.192.26]:25: Connection timed out
Jun 17 17:56:31 vps22253 postfix/smtp[2337]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1b]:25: Network is unreachable
Jun 17 17:56:31 vps22253 postfix/smtp[2337]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=31, delays=0.89/0.14/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c01::1b]:25: Network is unreachable)
Jun 17 18:04:55 vps22253 postfix/qmgr[3134]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 18:05:26 vps22253 postfix/smtp[3280]: connect to aspmx.l.google.com[172.217.192.27]:25: Connection timed out
Jun 17 18:05:26 vps22253 postfix/smtp[3280]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Jun 17 18:05:26 vps22253 postfix/smtp[3280]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=567, delays=536/0.82/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable)
Jun 17 18:05:52 vps22253 postfix/postscreen[3315]: CONNECT from [122.228.19.79]:62405 to [191.252.196.107]:25
Jun 17 18:05:52 vps22253 postfix/dnsblog[3316]: addr 122.228.19.79 listed by domain b.barracudacentral.org as 127.0.0.2
Jun 17 18:05:52 vps22253 postfix/dnsblog[3317]: addr 122.228.19.79 listed by domain zen.spamhaus.org as 127.0.0.4
Jun 17 18:05:52 vps22253 postfix/postscreen[3315]: PREGREET 9 after 0.53 from [122.228.19.79]:62405: EHLO []\r\n
Jun 17 18:05:52 vps22253 postfix/postscreen[3315]: DISCONNECT [122.228.19.79]:62405
Jun 17 18:14:55 vps22253 postfix/qmgr[3134]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 18:14:56 vps22253 postfix/smtp[4376]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1b]:25: Network is unreachable
Jun 17 18:15:26 vps22253 postfix/smtp[4376]: connect to aspmx.l.google.com[64.233.190.27]:25: Connection timed out
Jun 17 18:15:27 vps22253 postfix/smtp[4376]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=1167, delays=1136/1.1/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.190.27]:25: Connection timed out)


===============================================================


Jun 17 18:33:14 vps22253 amavis[2223]: No decoder for       .zoo
Jun 17 18:33:14 vps22253 amavis[2223]: Using primary internal av scanner code for clamav-socket
Jun 17 18:33:14 vps22253 amavis[2223]: Found secondary av scanner clamav-clamscan at /usr/bin/clamscan
Jun 17 18:33:14 vps22253 postfix/postfix-script[2446]: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/iRedMail_CA_PostgreSQL.pem
Jun 17 18:33:14 vps22253 postfix/postfix-script[2644]: starting the Postfix mail system
Jun 17 18:33:14 vps22253 postfix/master[2646]: daemon started -- version 3.3.0, configuration /etc/postfix
Jun 17 18:33:14 vps22253 postfix/qmgr[2651]: 49m5Cz15cLz45lY: from=<webmaster@botboutique.com.br>, size=1190587, nrcpt=1 (queue active)
Jun 17 18:33:15 vps22253 postfix/smtp[2752]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable
Jun 17 18:33:45 vps22253 postfix/smtp[2752]: connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out
Jun 17 18:33:45 vps22253 postfix/smtp[2752]: 49m5Cz15cLz45lY: to=<luiz@mentalmarketing.com.br>, relay=none, delay=170490, delays=170458/2/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out)
Jun 17 18:39:03 vps22253 postfix/qmgr[2651]: 49nHR44vqSz45bS: from=<postmaster@botboutique.com.br>, size=2351, nrcpt=1 (queue active)
Jun 17 18:39:03 vps22253 postfix/qmgr[2651]: 49m68q2Jykz45lb: from=<webmaster@botboutique.com.br>, size=1927, nrcpt=1 (queue active)
Jun 17 18:39:03 vps22253 postfix/smtp[4513]: connect to aspmx.l.google.com[2800:3f0:4003:c02::1a]:25: Network is unreachable
Jun 17 18:39:35 vps22253 postfix/smtp[4496]: connect to aspmx.l.google.com[172.217.192.26]:25: Connection timed out
Jun 17 18:39:35 vps22253 postfix/smtp[4496]: connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable
Jun 17 18:39:36 vps22253 postfix/smtp[4513]: connect to aspmx.l.google.com[64.233.186.27]:25: Connection timed out
Jun 17 18:39:37 vps22253 postfix/smtp[4496]: 49nHR44vqSz45bS: to=<luiz@mentalmarketing.com.br>, relay=none, delay=2614, delays=2536/47/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c01::1a]:25: Network is unreachable)
Jun 17 18:39:40 vps22253 postfix/smtp[4513]: 49m68q2Jykz45lb: to=<luiz@mentalmarketing.com.br>, relay=none, delay=168299, delays=168268/0.55/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[64.233.186.27]:25: Connection timed out)
Jun 17 18:53:16 vps22253 postfix/postscreen[7130]: CONNECT from [209.85.222.170]:38592 to [191.252.196.107]:25
Jun 17 18:53:22 vps22253 postfix/postscreen[7130]: PASS NEW [209.85.222.170]:38592
Jun 17 18:53:22 vps22253 postfix/smtpd[7134]: connect from mail-qk1-f170.google.com[209.85.222.170]
Jun 17 18:53:23 vps22253 postfix/smtpd[7134]: Anonymous TLS connection established from mail-qk1-f170.google.com[209.85.222.170]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
Jun 17 18:53:24 vps22253 postfix/smtpd[7134]: 49nJjJ6Wbmz3wKH: client=mail-qk1-f170.google.com[209.85.222.170]
Jun 17 18:53:25 vps22253 postfix/cleanup[7153]: 49nJjJ6Wbmz3wKH: message-id=<CAL8G17HNnAsQhK+iPdS4=DRc+uPCorAJrW4yLX8aMX4DxeA81A@mail.gmail.com>
Jun 17 18:53:25 vps22253 postfix/qmgr[2651]: 49nJjJ6Wbmz3wKH: from=<luiz@mentalmarketing.com.br>, size=3063, nrcpt=1 (queue active)
Jun 17 18:53:25 vps22253 postfix/smtpd[7134]: disconnect from mail-qk1-f170.google.com[209.85.222.170] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Jun 17 18:53:27 vps22253 amavis[3760]: (03760-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:53:28 vps22253 amavis[3760]: (03760-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:53:28 vps22253 amavis[3760]: (03760-01) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jun 17 18:53:34 vps22253 amavis[3760]: (03760-01) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:53:34 vps22253 amavis[3760]: (03760-01) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 113) line 659.\n
Jun 17 18:53:34 vps22253 amavis[3760]: (03760-01) (!)WARN: all primary virus scanners failed, considering backups
Jun 17 18:56:45 vps22253 postfix/anvil[7137]: statistics: max connection rate 1/60s for (smtpd:209.85.222.170) at Jun 17 18:53:22
Jun 17 18:56:45 vps22253 postfix/anvil[7137]: statistics: max connection count 1 for (smtpd:209.85.222.170) at Jun 17 18:53:22
Jun 17 18:56:45 vps22253 postfix/anvil[7137]: statistics: max cache size 1 at Jun 17 18:53:22
Jun 17 18:58:18 vps22253 amavis[3760]: (03760-01) (!)terminating process [7197] running clamav-clamscan (reason: on reading: timed out)
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!)process [7197] running clamav-clamscan is still alive, using a bigger hammer (SIGKILL)
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!)run_av (clamav-clamscan): collect_results - reading aborted: timed out at /usr/sbin/amavisd-new line 5121.
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!)clamav-clamscan av-scanner FAILED: run_av error: Exceeded allowed time\n
Jun 17 18:58:19 vps22253 amavis[3760]: (03760-01) (!!)AV: ALL VIRUS SCANNERS FAILED
Jun 17 18:58:22 vps22253 postfix/10025/smtpd[7705]: connect from localhost[127.0.0.1]
Jun 17 18:58:22 vps22253 postfix/10025/smtpd[7705]: 49nJq25JxHz45mF: client=localhost[127.0.0.1]
Jun 17 18:58:22 vps22253 postfix/cleanup[7713]: 49nJq25JxHz45mF: message-id=<CAL8G17HNnAsQhK+iPdS4=DRc+uPCorAJrW4yLX8aMX4DxeA81A@mail.gmail.com>
Jun 17 18:58:23 vps22253 postfix/10025/smtpd[7705]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun 17 18:58:23 vps22253 postfix/qmgr[2651]: 49nJq25JxHz45mF: from=<luiz@mentalmarketing.com.br>, size=3764, nrcpt=1 (queue active)
Jun 17 18:58:23 vps22253 amavis[3760]: (03760-01) Passed UNCHECKED {RelayedInbound}, [209.85.222.170]:38592 [209.85.222.170] ESMTP/ESMTP <luiz@mentalmarketing.com.br> -> <webmaster@botboutique.com.br>, (ESMTPS://[209.85.222.170]:38592), Queue-ID: 49nJjJ6Wbmz3wKH, Message-ID: <CAL8G17HNnAsQhK+iPdS4=DRc+uPCorAJrW4yLX8aMX4DxeA81A@mail.gmail.com>, mail_id: 8CGWhSbmbqE9, b: mEt5R85JG, Hits: 0.002, size: 3063, queued_as: 49nJq25JxHz45mF, Subject: "Tá por aí, Mann? (raw: =?UTF-8?B?VMOhIHBvciBhw60sIE1hbm4/?=)", From: <luiz@mentalmarketing.com.br>, helo=mail-qk1-f170.google.com, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HTML_MESSAGE=0.001,RCVD_IN_MSPIKE_H2=-0.001,SPF_HELO_NONE=0.001,SPF_NONE=0.001], autolearn=ham autolearn_force=no, autolearnscore=0.002, dkim_i=@mentalmarketing-com-br.20150623.gappssmtp.com, dkim_sd=20150623:mentalmarketing-com-br.20150623.gappssmtp.com, 297576 ms
Jun 17 18:58:23 vps22253 postfix/pipe[7714]: 49nJq25JxHz45mF: to=<webmaster@botboutique.com.br>, relay=dovecot, delay=0.87, delays=0.24/0.07/0/0.56, dsn=2.0.0, status=sent (delivered via dovecot service)
Jun 17 18:58:23 vps22253 postfix/qmgr[2651]: 49nJq25JxHz45mF: removed
Jun 17 18:58:23 vps22253 postfix/amavis/smtp[7159]: 49nJjJ6Wbmz3wKH: to=<webmaster@botboutique.com.br>, relay=127.0.0.1[127.0.0.1]:10024, delay=300, delays=1.5/0.13/0.48/298, 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 49nJq25JxHz45mF)
Jun 17 18:58:23 vps22253 postfix/qmgr[2651]: 49nJjJ6Wbmz3wKH: removed
Jun 17 18:59:45 vps22253 postfix/submission/smtpd[7860]: connect from localhost[127.0.0.1]
Jun 17 18:59:45 vps22253 postfix/submission/smtpd[7860]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Jun 17 18:59:46 vps22253 postfix/submission/smtpd[7860]: 49nJrf2Sj5z3wKH: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=webmaster@botboutique.com.br
Jun 17 18:59:46 vps22253 postfix/cleanup[7713]: 49nJrf2Sj5z3wKH: message-id=<33f6539e48461dde8d43c9fd6172881f@botboutique.com.br>
Jun 17 18:59:47 vps22253 roundcube: <sm00va2d> User webmaster@botboutique.com.br [170.231.96.9]; Message <33f6539e48461dde8d43c9fd6172881f@botboutique.com.br> for luiz@mentalmarketing.com.br; 250: 2.0.0 Ok: queued as 49nJrf2Sj5z3wKH
Jun 17 18:59:47 vps22253 postfix/submission/smtpd[7860]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jun 17 18:59:47 vps22253 postfix/qmgr[2651]: 49nJrf2Sj5z3wKH: from=<webmaster@botboutique.com.br>, size=994, nrcpt=1 (queue active)
Jun 17 18:59:50 vps22253 amavis[3760]: (03760-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:59:51 vps22253 amavis[3760]: (03760-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:59:51 vps22253 amavis[3760]: (03760-02) (!)clamav-socket: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
Jun 17 18:59:57 vps22253 amavis[3760]: (03760-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to a UNIX socket /var/run/clamav/clamd.ctl: No such file or directory
Jun 17 18:59:57 vps22253 amavis[3760]: (03760-02) (!)clamav-socket av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to /var/run/clamav/clamd.ctl) at (eval 113) line 659.\n
Jun 17 18:59:57 vps22253 amavis[3760]: (03760-02) (!)WARN: all primary virus scanners failed, considering backups
Jun 17 19:04:40 vps22253 amavis[3760]: (03760-02) (!)terminating process [7903] running clamav-clamscan (reason: on reading: timed out)
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!)process [7903] running clamav-clamscan is still alive, using a bigger hammer (SIGKILL)
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!)run_av (clamav-clamscan): collect_results - reading aborted: timed out at /usr/sbin/amavisd-new line 5121.
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!)clamav-clamscan av-scanner FAILED: run_av error: Exceeded allowed time\n
Jun 17 19:04:41 vps22253 amavis[3760]: (03760-02) (!!)AV: ALL VIRUS SCANNERS FAILED
Jun 17 19:04:45 vps22253 postfix/10025/smtpd[8459]: connect from localhost[127.0.0.1]
Jun 17 19:04:46 vps22253 postfix/10025/smtpd[8459]: 49nJyQ32pJz45mh: client=localhost[127.0.0.1]
Jun 17 19:04:46 vps22253 postfix/cleanup[8468]: 49nJyQ32pJz45mh: message-id=<33f6539e48461dde8d43c9fd6172881f@botboutique.com.br>
Jun 17 19:04:46 vps22253 postfix/10025/smtpd[8459]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun 17 19:04:46 vps22253 postfix/qmgr[2651]: 49nJyQ32pJz45mh: from=<webmaster@botboutique.com.br>, size=2379, nrcpt=1 (queue active)
Jun 17 19:04:47 vps22253 amavis[3760]: (03760-02) Passed UNCHECKED {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:32996 ESMTP/ESMTP <webmaster@botboutique.com.br> -> <luiz@mentalmarketing.com.br>, (), Queue-ID: 49nJrf2Sj5z3wKH, Message-ID: <33f6539e48461dde8d43c9fd6172881f@botboutique.com.br>, mail_id: KRpewjXQ75kR, b: w1BQQe115, Hits: -1, size: 1018, queued_as: 49nJyQ32pJz45mh, Subject: "Re: Tá por aí, Mann? (raw: =?UTF-8?Q?Re=3A_T=C3=A1_por_a=C3=AD=2C_Mann=3F?=)", From: <webmaster@botboutique.com.br>, User-Agent: Roundcube_Webmail, helo=localhost, Tests: [ALL_TRUSTED=-1], autolearn=ham autolearn_force=no, autolearnscore=0, dkim_new=dkim:botboutique.com.br, 299836 ms
Jun 17 19:04:47 vps22253 postfix/amavis/smtp[7159]: 49nJrf2Sj5z3wKH: to=<luiz@mentalmarketing.com.br>, relay=127.0.0.1[127.0.0.1]:10026, delay=302, delays=1.2/0.08/1.2/300, 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 49nJyQ32pJz45mh)
Jun 17 19:04:47 vps22253 postfix/qmgr[2651]: 49nJrf2Sj5z3wKH: removed
Jun 17 19:05:17 vps22253 postfix/smtp[8471]: connect to aspmx.l.google.com[64.233.186.26]:25: Connection timed out
Jun 17 19:05:17 vps22253 postfix/smtp[8471]: connect to aspmx.l.google.com[2800:3f0:4003:c00::1b]:25: Network is unreachable
Jun 17 19:05:17 vps22253 postfix/smtp[8471]: 49nJyQ32pJz45mh: to=<luiz@mentalmarketing.com.br>, relay=none, delay=31, delays=0.25/0.27/30/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2800:3f0:4003:c00::1b]:25: Network is unreachable)



===============================================================================================

MuPp3t33r wrote:

Are you trying to serve a regular website at botboutique.com.br and thus don't want it redirecting to /mail?

Yes, but the solution is easy, I edited the post and put an extra step (number 8) - it's just the case to modify the /var/www/html/index.html file.

Thanks again!

Ps: a VPS with only 512MB of RAM and just one vCPU cries a lot to run the service (hahaha) Next one will be stronger, indeed

5

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

LuizC wrote:

Ps: a VPS with only 512MB of RAM and just one vCPU cries a lot to run the service (hahaha) Next one will be stronger, indeed

Aha, so that's the problem then...
iRedMail likes for you to have at least 4GB RAM if you want a smooth experience. Best to upgrade your VPS.
If you want to cheap out on it a bit, then you could try disabling some extra protection services
https://docs.iredmail.org/completely.di … assin.html
If you have enough free space on the VPS (preferably with SSD storage) then you could try increasing the SWAP size, but this is honestly more of a hack than it's worth in my opinion, best to just get the resources you need.

If you are really looking for a low cost solution for emails, sometimes you might find that you have more capable hardware that you can run at home, and the monthly cost of the VPS might be more than upgrading your connectivity to support it.

For my personal iredmail server I originally tested on a VPS, but the cost was too prohibitive for me. So I ended up running it on HyperV with my own hardware and then use my uncapped LTE package (used no-ip as my ddns provider to keep my DNS up to date). which essentially costs me approx $30 USD (I'm in South Africa though, not sure if where you live that would be a feasible option...) and my electricity costs which are not really that high for a Core i5 with 8GB RAM.
For my clients, I'd typically run it on their own hardware as well, or a VPS which companies generally have the budget for...

6

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

LuizC wrote:

Jun 17 17:30:26 vps22253 postfix/smtp[129975]: connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out

Seems port 25 is blocked by your ISP. Please contact them to get a confirmation and ask them to unblock it for your server.

7

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

MuPp3t33r wrote:
LuizC wrote:

Ps: a VPS with only 512MB of RAM and just one vCPU cries a lot to run the service (hahaha) Next one will be stronger, indeed

Aha, so that's the problem then...
iRedMail likes for you to have at least 4GB RAM if you want a smooth experience. Best to upgrade your VPS.
If you want to cheap out on it a bit, then you could try disabling some extra protection services
https://docs.iredmail.org/completely.di … assin.html
If you have enough free space on the VPS (preferably with SSD storage) then you could try increasing the SWAP size, but this is honestly more of a hack than it's worth in my opinion, best to just get the resources you need.

If you are really looking for a low cost solution for emails, sometimes you might find that you have more capable hardware that you can run at home, and the monthly cost of the VPS might be more than upgrading your connectivity to support it.

For my personal iredmail server I originally tested on a VPS, but the cost was too prohibitive for me. So I ended up running it on HyperV with my own hardware and then use my uncapped LTE package (used no-ip as my ddns provider to keep my DNS up to date). which essentially costs me approx $30 USD (I'm in South Africa though, not sure if where you live that would be a feasible option...) and my electricity costs which are not really that high for a Core i5 with 8GB RAM.
For my clients, I'd typically run it on their own hardware as well, or a VPS which companies generally have the budget for...


Yes, I'll do it: I just use this bare bone VPS to test the installation process, not for daily use. I would use a Digital Ocean but here in Brazil opur corrency is melting down, so everything in dollar get a high value. But as I said, I'll setup a stronger VPS with 4GB of RAM and a good SSD storage space :-)

8 (edited by LuizC 2020-06-18 22:58:33)

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

ZhangHuangbin wrote:
LuizC wrote:

Jun 17 17:30:26 vps22253 postfix/smtp[129975]: connect to aspmx.l.google.com[64.233.190.26]:25: Connection timed out

Seems port 25 is blocked by your ISP. Please contact them to get a confirmation and ask them to unblock it for your server.

Thanks for your responde, Zhang!

here in Brazil, port 25 is bloqued for everybody due the years of spam abuse. The government here tends to be exagerated and bloqued port 25 for everybody, including servers for IT professionals.

Can I setup a different port, like 587?

9

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

LuizC wrote:

Can I setup a different port, like 587?

Sadly, no. 25 is the only port that mail can be transmitted over. Unfortunately that would make it impossible to use email in the country and would require hosting in another region.
You could setup a relay server on a VPS in another country and have that transmit/receive mails to and from your server over another port like 587

10

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

I was considering Digital Ocean, but ...

https://www.digitalocean.com/community/ … -enable-it

11

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

If you don't mind, maybe try Linode.com:
https://www.linode.com/blog/linode/a-ne … ight-spam/

12 (edited by LuizC 2020-06-21 23:45:21)

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

ZhangHuangbin wrote:

If you don't mind, maybe try Linode.com:
https://www.linode.com/blog/linode/a-ne … ight-spam/

Now my focus is to understand all the pieces involved in put a mail server to work and have a good understand of all. At this point I need to thanks all the support I found in this forum and before I try Linode I'll have the pleasure to pay you a coffe :-)

Thanks for the all the work!

13 (edited by LuizC 2020-06-22 02:05:59)

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

I tried SendGrid to deal with port 25 issue and no results till now. Worse: stop receiving emails. Using SendGrid setup makes emails received unavailable. When I turn to original main.cf file, I have access to emails previously received but not showed in RoundCube. SO PLEASE: make a copy of /etc/postfix/main.cf for your safety !!!

That's the steps that I followed:
https://sendgrid.com/docs/for-developer … l/postfix/

More than that I commented

smtp_tls_security_level = may

in the new /etc/postfix/main.cf to avoid error messages in the log.

==========================================

Here's the log, with main.cf modified like Send Grid says:


=== Initialization
Jun 21 13:13:21 vps22253 postfix/postfix-script[11223]: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/iRedMail_CA_PostgreSQL.pem


=== In my email account, I sent a message (this message never appears on RoundCube)

Jun 21 13:15:08 vps22253 postfix/postscreen[11564]: CONNECT from [209.85.160.181]:44148 to [191.252.196.107]:25
Jun 21 13:15:14 vps22253 postfix/postscreen[11564]: PASS OLD [209.85.160.181]:44148
Jun 21 13:15:14 vps22253 postfix/smtpd[11569]: connect from mail-qt1-f181.google.com[209.85.160.181]
Jun 21 13:15:15 vps22253 postfix/smtpd[11569]: Anonymous TLS connection established from mail-qt1-f181.google.com[209.85.160.181]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
Jun 21 13:15:18 vps22253 postfix/smtpd[11569]: 49qd1L1BrLz452Q: client=mail-qt1-f181.google.com[209.85.160.181]
Jun 21 13:15:19 vps22253 postfix/cleanup[11594]: 49qd1L1BrLz452Q: message-id=<CAL8G17HwenpMxmbGx-J5tHGLZXs92L3O_ZdHizjnrSCM6oUcVQ@mail.gmail.com>
Jun 21 13:15:19 vps22253 postfix/smtpd[11569]: disconnect from mail-qt1-f181.google.com[209.85.160.181] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Jun 21 13:15:19 vps22253 postfix/qmgr[11384]: 49qd1L1BrLz452Q: from=<luiz@mentalmarketing.com.br>, size=3057, nrcpt=1 (queue active)
Jun 21 13:15:20 vps22253 postfix/amavis/smtp[11600]: 49qd1L1BrLz452Q: to=<postmaster@botboutique.com.br>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.5, delays=3.4/0.41/0.72/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
Jun 21 13:18:21 vps22253 postfix/qmgr[11384]: 49qckC3tBKz451L: from=<luiz@mentalmarketing.com.br>, size=3060, nrcpt=1 (queue active)
Jun 21 13:18:22 vps22253 postfix/amavis/smtp[11850]: 49qckC3tBKz451L: to=<postmaster@botboutique.com.br>, relay=127.0.0.1[127.0.0.1]:10024, delay=973, delays=972/0.14/0.53/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
Jun 21 13:18:39 vps22253 postfix/anvil[11572]: statistics: max connection rate 1/60s for (smtpd:209.85.160.181) at Jun 21 13:15:14
Jun 21 13:18:39 vps22253 postfix/anvil[11572]: statistics: max connection count 1 for (smtpd:209.85.160.181) at Jun 21 13:15:14
Jun 21 13:18:39 vps22253 postfix/anvil[11572]: statistics: max cache size 1 at Jun 21 13:15:14
Jun 21 13:19:34 vps22253 postfix/submission/smtpd[11947]: warning: hostname zg-0428c-63.stretchoid.com does not resolve to address 162.243.136.51: Name or service not known
Jun 21 13:19:34 vps22253 postfix/submission/smtpd[11947]: connect from unknown[162.243.136.51]
Jun 21 13:19:34 vps22253 postfix/submission/smtpd[11947]: disconnect from unknown[162.243.136.51] ehlo=1 quit=1 commands=2
Jun 21 13:13:21 vps22253 postfix/postfix-script[11379]: starting the Postfix mail system
Jun 21 13:13:21 vps22253 postfix/master[11381]: daemon started -- version 3.3.0, configuration /etc/postfix


===== Make a login in Round Cube and try to send an email

Jun 21 13:22:54 vps22253 postfix/anvil[11948]: statistics: max connection rate 1/60s for (submission:162.243.136.51) at Jun 21 13:19:34
Jun 21 13:22:54 vps22253 postfix/anvil[11948]: statistics: max connection count 1 for (submission:162.243.136.51) at Jun 21 13:19:34
Jun 21 13:22:54 vps22253 postfix/anvil[11948]: statistics: max cache size 1 at Jun 21 13:19:34
Jun 21 13:23:21 vps22253 postfix/qmgr[11384]: 49qd1L1BrLz452Q: from=<luiz@mentalmarketing.com.br>, size=3057, nrcpt=1 (queue active)
Jun 21 13:23:22 vps22253 postfix/amavis/smtp[12345]: 49qd1L1BrLz452Q: to=<postmaster@botboutique.com.br>, relay=127.0.0.1[127.0.0.1]:10024, delay=486, delays=486/0.17/0.49/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
Jun 21 13:25:09 vps22253 postfix/submission/smtpd[12591]: connect from localhost[127.0.0.1]
Jun 21 13:25:10 vps22253 postfix/submission/smtpd[12591]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
Jun 21 13:25:12 vps22253 postfix/submission/smtpd[12591]: 49qdDm0TPDz4588: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@botboutique.com.br
Jun 21 13:25:13 vps22253 postfix/cleanup[12608]: 49qdDm0TPDz4588: message-id=<f3dddca365f48088faf1a1fc7d3834fc@botboutique.com.br>
Jun 21 13:25:13 vps22253 roundcube: <sa7k0u6l> User postmaster@botboutique.com.br [170.231.96.9]; Message <f3dddca365f48088faf1a1fc7d3834fc@botboutique.com.br> for luiz@mentalmarketing.com.br; 250: 2.0.0 Ok: queued as 49qdDm0TPDz4588
Jun 21 13:25:13 vps22253 postfix/submission/smtpd[12591]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Jun 21 13:25:13 vps22253 postfix/qmgr[11384]: 49qdDm0TPDz4588: from=<postmaster@botboutique.com.br>, size=622, nrcpt=1 (queue active)
Jun 21 13:25:15 vps22253 postfix/amavis/smtp[12613]: 49qdDm0TPDz4588: to=<luiz@mentalmarketing.com.br>, relay=127.0.0.1[127.0.0.1]:10026, delay=5, delays=2.7/0.42/1.8/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])

14

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

LuizC wrote:

status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])

This might be helpful:
https://forum.iredmail.org/topic8884-ir … 27001.html

LuizC wrote:

That's the steps that I followed:
https://sendgrid.com/docs/for-developer … l/postfix/

This will only apply to emails sent FROM your iredmail server, not TO.
I might be wrong here as I'm not familiar with SendGrid, but this might be what you're needing for incoming mail
https://sendgrid.com/docs/API_Reference … email.html

LuizC wrote:

Jun 21 13:19:34 vps22253 postfix/submission/smtpd[11947]: warning: hostname zg-0428c-63.stretchoid.com does not resolve to address 162.243.136.51: Name or service not known

Another missing Reverse PTR record, and incorrect host name

nslookup 162.243.136.51 1.1.1.1
Server:  one.one.one.one
Address:  1.1.1.1
*** one.one.one.one can't find 162.243.136.51: Non-existent domain

nslookup zg-0428c-63.stretchoid.com 1.1.1.1
Server:  one.one.one.one
Address:  1.1.1.1
*** one.one.one.one can't find zg-0428c-63.stretchoid.com: Non-existent domain

Hopefully I didn't miss anything in your logs, but some points for you to try anyway smile

15 (edited by LuizC 2020-06-24 01:52:59)

Re: iRedMail, a fresh server and Cloudflare's services: ALMOST perfect!

MuPp3t33r wrote:

This might be helpful:
https://forum.iredmail.org/topic8884-ir … 27001.html

Mupet33r to the rescue :-)

I just added

amavis unix - - - - 2 smtp
  -o smtp_tls_security_level=none

in my /etc/postfix/master.conf, restarted postfix and amavis and now I'm on the game! Hurray!

Now, I'm gonna do this again in another experimental server, before going production (it was fun, let's reinstall everything hahahah)

Thanks a lot, mate!