Email Failed - Mailgun SMTP

Your software
My Mautic version is: Latest
My PHP version is: 8.0.30
My Database type and version is: 10.11.9-MariaDB-ubu2204

My Configurations:

Cron:

Queue Setting:

DSN:

Your problem
My problem is:
I am using mailgun smtp for my outgoing emails.

I had created the crons and emails sent perfectly received in the inbox, I was warming up my server just 30-40 my own emails.

But on the mailgun dashboard it shows that I have send some 600 emails but in reality I only imported 30 - 40 contacts and send them emails using campain. Screenshots attahced.

Mailgun Dashboard:

mailgun logs:

marke2650@mail.domain.info is not the email I created, my email is alex.colemen@domain.info

These errors are showing in the log:
Mautic Logs: mautic - Pastebin.com

Is there something which I need to change or I did something wrong.

Any help is highly appreciated.

Well couple of things here:

I had created the crons and emails sent perfectly received in the inbox, I was warming up my server just 30-40 my own emails

There is no evidence, that you can warm up your emails like this. I have seen, that there are companies asking money for such a service, but I have never seen it. It’s like you are pouring a cup of hot water in your pool on a cold spring day for 10 days in the row, and then fill it up with cold water.

Regarding the email: what is your sender email address defined in Mautic?

Also: Mailgun is tricky: it tries to resend your emails if they fail.
So let’s say you send out 30 emails. They all fail due to low domain rep, or other reason. So MG tries to send it again. multiple times. This could be the reason why you have so many sends. You can see btw that from 836 emails only 27 were delivered, 798 bounced.

I would not be sending bulk emails, I will be sending max 100 emails/day, I am using mautic for drip campaigns and automation.

it’s alex.colemen@domain.com

It’s the only email I have right know on this domain.

Bounce rate is 1%, emails are going perfectly manually.

This is not my email, never created this market2650@mail.domain.com. It’s in mailgun logs and this is causing this issue. And it’s related to Cron Daemon. I can also share the detailed log for this as well.

{
	"tags": [],
	"severity": "permanent",
	"campaigns": [],
	"log-level": "error",
	"id": "jtgmIPl0RiqhefF8eSYYgA",
	"envelope": {
		"targets": "marke2650@mail.domain.com",
		"sending-ip": "198.61.254.59",
		"transport": "smtp",
		"sender": "marke2650@mail.domain.com"
	},
	"flags": {
		"is-authenticated": true,
		"is-routed": false,
		"is-system-test": false,
		"is-test-mode": false
	},
	"message": {
		"attachments": [],
		"size": 703,
		"headers": {
			"subject": "Cron <marke2650@cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01> php /home/market.domain.com/bin/console messenger:consume email",
			"message-id": "20240928165101.3D403104F23@mail.domain.com",
			"from": "root@mail.domain.com (Cron Daemon)",
			"to": "marke2650@mail.domain.com"
		}
	},
	"storage": {
		"region": "us-east4",
		"env": "production",
		"key": "BAABAAU6L7z7ftTLVmJPzKZodKVpXeanYg",
		"url": "https://storage-us-east4.api.mailgun.net/v3/domains/domain.com/messages/BAABAAU6L7z7ftTLVmJPzKZodKVpXeanYg"
	},
	"delivery-status": {
		"attempt-no": 1,
		"session-seconds": 0.554,
		"bounce-type": "soft",
		"tls": true,
		"enhanced-code": "5.7.1",
		"mx-host": "mail.domain.com",
		"code": 554,
		"description": "",
		"message": "5.7.1 <marke2650@mail.domain.com>: Relay access denied",
		"first-delivery-attempt-seconds": 0.088
	},
	"recipient-provider": "Other",
	"recipient": "marke2650@mail.domain.com",
	"recipient-domain": "mail.domain.com",
	"user-variables": {},
	"timestamp": 1727580417.911046,
	"event": "failed",
	"primary-dkim": "krs._domainkey.domain.com",
	"reason": "generic"
}

Okay, so if you plan to send under 100 emails / day, you don’t need a warmup, just send slow. If you think your domain reputation is low, you need to send more then 2000 emails / day to even have an effect and improve.

That email address is coming from your hosting company. You can see in the logs, that your name is "System Cron’.
Probably what is happening, your hosting is sending cron job updates through Mailgun, and since the recipient is not legit, they are all failing (and doing bad things to your Mailgun account.)

My opinion is, that your Mautic is not set up properly.
I wouldn’t be able to fix it, I don’t do UI based Mautic installs on hosting, that controls a part of the processes.

Joey

Thanks for pointing in the right direction.

Logs of the cron job of my hosting are:

Sep 30 14:27:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[268937]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name '.htaccess' -exec false {} +; then systemctl restart lsws; fi)
Sep 30 14:27:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[268938]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:campaigns:update)
Sep 30 14:27:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[268941]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:campaigns:trigger)
Sep 30 14:27:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[268942]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:segments:update)
Sep 30 14:28:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269004]: (marke2650) CMD (php /home/market.domainname.com/bin/console messenger:consume email)
Sep 30 14:28:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269005]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:campaigns:update)
Sep 30 14:28:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269007]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:campaigns:trigger)
Sep 30 14:28:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269008]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:segments:update)
Sep 30 14:29:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269112]: (marke2650) CMD (php /home/market.domainname.com/bin/console messenger:consume email)
Sep 30 14:29:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269114]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:campaigns:update)
Sep 30 14:29:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269117]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:segments:update)
Sep 30 14:29:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269116]: (marke2650) CMD (php /home/market.domainname.com/public_html/bin/console mautic:campaigns:trigger)
Sep 30 14:30:01 cyberpanel235onubuntu2204-s-1vcpu-1gb-35gb-intel-nyc1-01 CRON[269182]: (marke2650) CMD (php /home/market.domainname.com/bin/console messenger:consume email)

Do you have any idea how to resolve this issue.

Can you please share the complete guide link for proper setup, I installed it from the official website and then uploaded it on my cyberpanel file manager.

Would be great if you could share the whole guide including setting up the cron jobs

Can you please confirm these logs are indicating that cron jobs are running Mautic commands and sending their outputs logs/errors to my email? And I need to edit the cron jobs to handle this scenario and send it to log folder or file?

It seems so, you need to silent those emails:

* * * * * /path/to/your/command > /dev/null 2>&1

The official guide should be fine btw.

1 Like

I updated my crons and this resolved my issue.

php /home/market.wyzet.info/public_html/bin/console mautic:campaigns:update >> /home/domainname.com/cron.log 2>&1

php /home/market.wyzet.info/public_html/bin/console mautic:campaigns:trigger >> /home/domainname.com/cron.log 2>&1

php /home/market.wyzet.info/public_html/bin/console mautic:segments:update >> /home/domainname.com/cron.log 2>&1

Thanks Joe, Really appreciate your help.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.