1

Topic: SMTP monitoring with statuscake

==== 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: MySQL
- Web server NGINX
- Manage mail accounts with iRedAdmin-Pro? no



I'm trying to use the statuscake.com smtp monitoring service to alert us if postfix is unable to send an email. The statuscake service uses multiple servers around the world to authenticate the server and attempt to send a message.

When using the service it fails and when checking the logs the following shows (181.41.201.117 is one of  statuscake's test servers)

Dec  6 11:15:13 mx01 postfix/submission/smtpd[13549]: connect from unknown[181.41.201.117]
Dec  6 11:15:14 mx01 postfix/submission/smtpd[13549]: Anonymous TLS connection established from unknown[181.41.201.117]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Dec  6 11:15:14 mx01 postfix/submission/smtpd[13549]: disconnect from unknown[181.41.201.117]
Dec  6 11:15:14 mx01 postfix/submission/smtpd[13549]: connect from unknown[181.41.201.117]
Dec  6 11:15:15 mx01 postfix/submission/smtpd[13549]: Anonymous TLS connection established from unknown[181.41.201.117]: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Dec  6 11:15:15 mx01 postfix/submission/smtpd[13549]: NOQUEUE: reject: RCPT from unknown[181.41.201.117]: 554 5.7.1 <65c89378793779ec4c85ac3129837e00@statuscake-email.com>: Recipient address rejected: Sender is not same as SMTP authenticate username; from=<test@statuscake.com> to=<65c89378793779ec4c85ac3129837e00@statuscake-email.com> proto=ESMTP helo=<SMTPTest.statuscake.com>
Dec  6 11:15:16 mx01 postfix/submission/smtpd[13549]: lost connection after RCPT from unknown[181.41.201.117]
Dec  6 11:15:16 mx01 postfix/submission/smtpd[13549]: disconnect from unknown[181.41.201.117]

I checked with statuscake support and they advised that there is no way to configure the smtp account to send a message to it's self so that problem is statuscake it's attempting to send a test using Test.statuscake.com which casues the error “Sender is not same as SMTP authenticate username”


Other than adding the IP address’s to all the statuscake test servers to the smtp relay list is there any other way to get iredmail to play nice with these tests?

Thanks,
Tim

----

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

2

Re: SMTP monitoring with statuscake

time4e wrote:

... Recipient address rejected: Sender is not same as SMTP authenticate username; from=<test@statuscake.com> to=<65c89378793779ec4c85ac3129837e00@statuscake-email.com> ...

You hide the real email address, so i cannot give you the accurate answer in this case.

Do you mean you have a local domain called "Test.statuscake.com" on your server? Show us how it works, then i will give you an answer -- i already have, but i need to know it works first to give you a accurate answer.

3

Re: SMTP monitoring with statuscake

to see how it works you can use a free account on statuscake.com and create a test and select SMTP. The real email address I was trying to use is test@ypcr.com (created on my iredmail server) the statuscake test server is suppose to login in with test@ypcr.com every 5 minutes and  send a test message which it is not able to do because of the error message I posted in my last post. test.statuscake.com appears to be the server used for sending the test.

4

Re: SMTP monitoring with statuscake

time4e wrote:

the statuscake test server is suppose to login in with test@ypcr.com every 5 minutes and  send a test message which it is not able to do because of the error message I posted in my last post.

The error message is "Sender is not same as SMTP authenticate username", it means statuscake test server uses "test@ypcr.com" as SMTP auth username, but it uses a different From: address in its testing email.

Solutions:

*) The correct and best solution: Ask statuscake to fix this issue. It should always use same smtp auth username and From: address in email.
*) Fix it on your side: in /opt/iredapd/settings.py, add setting below, then restart iredapd service.

ALLOWED_LOGIN_MISMATCH_SENDERS = ['test@ypcr.com']

With this setting, user "test@ypcr.com" is allowed to send email as different sender AFTER SMTP AUTH.

5

Re: SMTP monitoring with statuscake

Thanks that worked!