# Ougoing SMF forum mail being rejected

**URL:** <https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842>\
**Category:** Rocky Linux Help & Support\
**Created:** [August 4, 2022, 7:47am UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842 "2022-08-04T07:47:06Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [August 6, 2022, 8:16pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/21 "2022-08-06T20:16:37Z")

</div>

> [@Mikheil](#):
>
> If I send mail from the SMF Forum, it vanishes into that big bit bucket in the sky and disppears without a trace.

Check SMF forum configuration since webmin and console works must mean that the forum config needs fixing.

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 6, 2022, 10:43pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/22 "2022-08-06T22:43:20Z")

</div>

There are only two options:  
PHP(default)  
SMTP

Current Settings:  
Mail type : (PHP default)  
SMTP server :  
SMTP port : 25  
SMTP username  
SMTP password  
(confirm)

This setting allows you to choose either PHP’s default settings, or to override those settings with SMTP. PHP doesn’t support using authentication with SMTP (which many hosts require, now) so if you want that you should select SMTP. Please note that SMTP can be slower, and some servers will not take usernames and passwords.

You don’t need to fill in the SMTP settings if this is set to PHP’s default.

I though of trying SMTP, but which server do I put in there?  
[myDomain.com](http://myDomain.com) OR  
[Office.myDomain.com](http://Office.myDomain.com) OR  
[rocky-86.office.myDomain.com](http://rocky-86.office.myDomain.com) OR  
what?

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [August 7, 2022, 8:37am UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/23 "2022-08-07T08:37:09Z")

</div>

Hi,

If you use php, I would double check the **sendmail\_path** is correct in php.ini (normally located /etc/php.ini).

Thanks Tom.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [August 7, 2022, 8:45am UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/24 "2022-08-07T08:45:09Z")

</div>

I would use smtp over php since it can be problematic. If you do use smtp then you dont need sendmail locally. All my joomla installs use smtp instead of php.

You put in the name of your server so tsgw1 or whatever it is called.

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 7, 2022, 2:21pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/25 "2022-08-07T14:21:00Z")

</div>

Nope, tried it, mail still vanishes. It’s not in the mqueue and the only indication in maillog is the word failed.

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [August 7, 2022, 2:43pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/26 "2022-08-07T14:43:25Z")

</div>

tried which? php or smtp?

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 7, 2022, 3:28pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/27 "2022-08-07T15:28:42Z")

</div>

Both, but I guess I don’t know enough about sendmail to be able to fix it. Here’s an exerp from the mailog, it doesn’t mean a lot to me I’m afraid.

Aug 06 21:31:06 rocky-86 sendmail[781452]: 276JV5AA781452: from=[apache@rocky-86.office.myDomain.com](mailto:apache@rocky-86.office.myDomain.com), size=825, class=0, nrcpts=1, msgid=[202208061931.276JV5vw781451@rocky-86.office.myDomain.com](mailto:202208061931.276JV5vw781451@rocky-86.office.myDomain.com), proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]  
Aug 06 21:31:12 rocky-86 sendmail[781455]: STARTTLS=client, relay=mail.protonmail.ch., version=TLSv1.3, verify=FAIL, cipher=TLS\_AES\_256\_GCM\_SHA384, bits=256/256  
Aug 06 21:31:13 rocky-86 sendmail[781455]: 276JV5AA781452: to=[user.name@protonmail.com](mailto:user.name@protonmail.com), ctladdr=[apache@rocky-86.office.myDomain.com](mailto:apache@rocky-86.office.myDomain.com) (48/48), delay=00:00:08, xdelay=00:00:07, mailer=esmtp, pri=120825, relay=mail.protonmail.ch. [185.70.42.128], dsn=2.0.0, stat=Sent (Ok: queued as 4M0XdD3cvgz9vNPN)

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [August 7, 2022, 3:43pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/28 "2022-08-07T15:43:19Z")

</div>

> [@Mikheil](#):
>
> dsn=2.0.0, stat=Sent (Ok: queued

Looks like it was sent means it left the queue and your server. Maybe in spam folder in protonmail. If not or no return email for reason of delivery faiure it will be impossible to solve. Had you sent via your email server instead using smtp then it would have returned to the senders mailbox with an error and then it would be possible to solve.

Using sendmail on the SMF server doesnt allow that stage of diagnosis to occur. Therefore configure smtp in smf server to use tsgw1 instead of sendmail. Otherwise we cannot help further.

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [August 7, 2022, 3:47pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/29 "2022-08-07T15:47:49Z")

</div>

Hi,

> [@Mikheil](#):
>
> queued as 4M0XdD3cvgz9vNPN)

I suggest asking protonmail support what happened to message ID 4M0XdD3cvgz9vNPN, if it isn’t junk.

Regards Tom.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [August 7, 2022, 3:57pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/30 "2022-08-07T15:57:57Z")

</div>

If the email is being sent using standard Rocky php infrastructure (including sendmail), it’s worth creating a 10 line php CLI script to test it. It’s not clear to me if you are saying the mail is bouncing, or if it’s just disppearing? It doesn’t help with the over obfuscation of the logs. One thing I can see straight away is where it says “from apache@rocky-86…”, most upstream hosts would reject this becuase it’s not a real from address, but in that case it should bounce back…

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 7, 2022, 4:15pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/31 "2022-08-07T16:15:58Z")

</div>

It MAY bounce back, but it takes time.

I did try configuring SMF, to send to port 25 on my mailserver, but that does the same thing - vanishes.

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [August 7, 2022, 6:08pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/32 "2022-08-07T18:08:29Z")

</div>

Hi,

> [@Mikheil](#):
>
> I did try configuring SMF, to send to port 25 on my mailserver, but that does the same thing - vanishes.

According to the last log snippit you posted, protonmail accepted it for delivery. Have you contacted their support?

Regards Tom.

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 8, 2022, 8:43am UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/33 "2022-08-08T08:43:57Z")

</div>

Asking is easy, waiting for a reply - takes time. Not like it’s urgent. I have patience.

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 9, 2022, 4:53pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/34 "2022-08-09T16:53:06Z")

</div>

I’ve found the problem, (but I don’t know how to fix it).

In sendmail.mc I have Masquerade \_as set to [myDomain.com](http://myDomain.com)

For some reason, all outgoing mail has the From field as [user@office.myDomain.com](mailto:user@office.myDomain.com). Never gets delivered to protonmail. If I create a mail in webmin and chage the From: manually to [user@myDomain.com](mailto:user@myDomain.com), it works fine.

Must be something in the later version of sendmail I reckon. the CentOS 7.3 version never gave a problem.

Must be something wrong or missing in sendmail.mc, but what?

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [August 9, 2022, 5:06pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/35 "2022-08-09T17:06:00Z")

</div>

Hi,

This may help:

> **[Sendmail 8.12.3 cf/README - Masquerading And Relaying](https://www.sendmail.org/~ca/email/doc8.12/cf/m4/masquerading_relaying.html)**
>
> This document describes the sendmail configuration files.

Regards Tom.

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 9, 2022, 8:58pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/36 "2022-08-09T20:58:30Z")

</div>

I checked, it’s setup correctly.

I rotated the logfile and sent 2 more mails from SMF

Aug 9 22:39:15 rocky-86 sendmail[897885]: 279KdFM4897885: from=apache, size=583, class=0, nrcpts=1, msgid=[202208092039.279KdFM4897885@rocky-86.office.myDomain.com](mailto:202208092039.279KdFM4897885@rocky-86.office.myDomain.com), relay=apache@localhost  
Aug 9 22:39:15 rocky-86 sendmail[897885]: 279KdFM4897885: [to=user1@protonmail.com](mailto:to=user1@protonmail.com), ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30583, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Aug 9 22:39:37 rocky-86 sendmail[897887]: 279KdbqK897887: from=apache, size=594, class=0, nrcpts=1, msgid=[202208092039.279KdbqK897887@rocky-86.office.myDomain.com](mailto:202208092039.279KdbqK897887@rocky-86.office.myDomain.com), relay=apache@localhost

Aug 9 22:39:37 rocky-86 sendmail[897887]: 279KdbqK897887: [to=user1@protonmail.com](mailto:to=user1@protonmail.com), ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30594, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Sending from the command line works perfectly. as well as from webmin. Everything is masqueraded as [myDomain.com](http://myDomain.com).

It worked fine on CentOS 7

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [August 9, 2022, 9:30pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/37 "2022-08-09T21:30:43Z")

</div>

Hi,

Now sendmail is refusing the connection. Its not really clear that why.

At this I would try iwalker’s suggestion:

> [@iwalker](#):
>
> Therefore configure smtp in smf server to use tsgw1 instead of sendmail. Otherwise we cannot help further.

Regards Tom.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [August 9, 2022, 9:44pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/38 "2022-08-09T21:44:51Z")

</div>

It’s worth checking that sendmail is listening on the sending host e.g.  
ss -ntl  
check the service is running, and if it’s not, why did it stop?

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 9, 2022, 9:57pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/39 "2022-08-09T21:57:05Z")

</div>

Nope, didn’t work, it actually made things MUCH worse, because then ALL mail came out from [rocky-86@office.myDomain.com](mailto:rocky-86@office.myDomain.com)

---

<div class="post-metadata">

**Author:** ![Mikheil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/mikheil/32/2054_2.png) [@Mikheil](https://forums.rockylinux.org/u/Mikheil)\
**Post date:** [August 10, 2022, 7:42pm UTC](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842/40 "2022-08-10T19:42:08Z")

</div>

Nere’s the header from the undelivered mail:

Return-Path: \<\>  
X-Original-To: [MyName@protonmail.com](mailto:MyName@protonmail.com)  
Delivered-To: [MyName@protonmail.com](mailto:MyName@protonmail.com)  
Received: from [TSMAIL1.office.myDomain.com](http://TSMAIL1.office.myDomain.com) (unknown [99.999.999.999]) by  
mailin029.protonmail.ch (Postfix) with ESMTP id 4M30P82k0Fz9vNPS for  
[MyName@protonmail.com](mailto:MyName@protonmail.com); Wed, 10 Aug 2022 19:29:16 +0000 (UTC)  
Received: from NTD-MTA by [TSMAIL1.office.myDomain.com](http://TSMAIL1.office.myDomain.com) with Novell\_GroupWise;  
Wed, 10 Aug 2022 21:29:10 +0200  
Authentication-Results: mailin029.protonmail.ch; arc=none smtp.remote-ip=99.999.999.999  
Authentication-Results: mailin029.protonmail.ch; dkim=none  
Authentication-Results: mailin029.protonmail.ch; spf=none  
[smtp.helo=TSMAIL1.office.myDomain.com](http://smtp.helo=TSMAIL1.office.myDomain.com)  
Authentication-Results: mailin029.protonmail.ch; dmarc=none (p=none dis=none)  
[header.from=TSMAIL1.office.myDomain.com](http://header.from=TSMAIL1.office.myDomain.com)  
Message-Id: [s2f42326.006@TSMAIL1.office.myDomain.com](mailto:s2f42326.006@TSMAIL1.office.myDomain.com)  
X-Mailer: Novell GroupWise Internet Agent 9.9.9  
Date: Wed, 10 Aug 2022 21:29:10 +0200  
From: [Mailer-Daemon@TSMAIL1.office.myDomain.com](mailto:Mailer-Daemon@TSMAIL1.office.myDomain.com)  
To: [MyName@protonmail.com](mailto:MyName@protonmail.com)  
Subject: Message status - undeliverable  
Mime-Version: 1.0  
Content-Type: text/plain  
X-Rspamd-Queue-Id: 4M30P82k0Fz9vNPS  
X-Spamd-Result: default: False [4.95 / 25.00]; HFILTER\_HOSTNAME\_UNKNOWN(2.50);  
MIME\_MA\_MISSING\_HTML(1.00); AUTH\_NA(1.00); MV\_CASE(0.50);  
RCVD\_NO\_TLS\_LAST(0.10);  
MIME\_GOOD(-0.10)[multipart/mixed,text/plain,multipart/alternative];  
BOUNCE(-0.05)[mailer-daemon+subj]; R\_SPF\_NA(0.00)[no SPF record]; R\_DKIM\_NA(0.00);  
MIME\_TRACE(0.00)[0:+,1:+,2:~,3:+,4:+]; FROM\_NO\_DN(0.00); ASN(0.00)[asn:9031,  
ipnet:85.234.192.0/19, country:BE]; TO\_MATCH\_ENVRCPT\_ALL(0.00);  
NEURAL\_SPAM(0.00)[0.786]; RCVD\_COUNT\_TWO(0.00)[2]; SUBJ\_BOUNCE\_WORDS(0.00);  
ARC\_NA(0.00); TO\_DN\_NONE(0.00); RCPT\_COUNT\_ONE(0.00)[1];  
DMARC\_NA(0.00)[[myDomain.com](http://myDomain.com)]; MID\_RHS\_MATCH\_FROM(0.00)

[Previous page](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842.md?page=1)

[Next page](https://forums.rockylinux.org/t/ougoing-smf-forum-mail-being-rejected/6842.md?page=3)
