can't send emails

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
DRAW
New user
New user
Posts: 6
Joined: 2020-12-19 19:36

can't send emails

Post by DRAW » 2020-12-19 20:00

Hi All,
I’m a newbie, I setup my server with three different domains thanks to this forum, but I can’t send mails out, but I can receive. If someone can give me push to get settings right, would be a great.

Thanks :D

User avatar
jimimaseye
Moderator
Moderator
Posts: 8917
Joined: 2011-09-08 17:48

Re: can't send emails

Post by jimimaseye » 2020-12-19 20:09

Documentation has lots of answers: https://www.hmailserver.com/documentati ... es_outside

[Entered by mobile. Excuse my spelling.]
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

DRAW
New user
New user
Posts: 6
Joined: 2020-12-19 19:36

Re: can't send emails

Post by DRAW » 2020-12-19 20:26

Thanks for the link.

I checked port 25 is open and I can connect, also I get all the mx records for the domains I checked.
when I send an email i get this message as the reason to reject -
The following recipient(s) could not be reached:

user321@outlook.com
Error Type: SMTP
Remote server (104.47.41.33) issued an error.
hMailServer sent: HELO mail.Domain1.ltd; mail.Domain2.ltd; mail.Domain3.ltd
Remote server replied: 501 5.5.4 Invalid domain name [DM3NAM03FT011.eop-NAM03.prod.protection.outlook.com]

User avatar
jimimaseye
Moderator
Moderator
Posts: 8917
Joined: 2011-09-08 17:48

Re: can't send emails

Post by jimimaseye » 2020-12-19 21:19

That error is issued by remote server.
https://www.google.com/search?ie=UTF-8& ... omain+name

[Entered by mobile. Excuse my spelling.]
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
SorenR
Senior user
Senior user
Posts: 4195
Joined: 2006-08-21 15:38
Location: Denmark

Re: can't send emails

Post by SorenR » 2020-12-19 21:30

jimimaseye wrote:
2020-12-19 21:19
That error is issued by remote server.
https://www.google.com/search?ie=UTF-8& ... omain+name

[Entered by mobile. Excuse my spelling.]
Yes, but the HELO/EHLO greeting is FU'd...

@DRAW
hMailAdmin -> Settings -> Protocols -> SMTP -> [Delivery of e-mail]

What did you put into "Local host name" ??
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

DRAW
New user
New user
Posts: 6
Joined: 2020-12-19 19:36

Re: can't send emails

Post by DRAW » 2020-12-19 21:49

Since I have three domains, I entered as mail.domain1.com; mail.domain2.com; mail.domain3.com. Do I need to change anything?

Thanks

User avatar
jimimaseye
Moderator
Moderator
Posts: 8917
Joined: 2011-09-08 17:48

Re: can't send emails

Post by jimimaseye » 2020-12-19 21:53

You can only have 1 domain in the entry.
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
SorenR
Senior user
Senior user
Posts: 4195
Joined: 2006-08-21 15:38
Location: Denmark

Re: can't send emails

Post by SorenR » 2020-12-19 22:04

DRAW wrote:
2020-12-19 21:49
Since I have three domains, I entered as mail.domain1.com; mail.domain2.com; mail.domain3.com. Do I need to change anything?

Thanks
That is a major violation of all SMTP RFC's...

What goes in here depend on your MX configuration. I bet you are trying to run it like 3 servers in one...
This is how you should do it ...

Host domain (hMailServer installation):
A record "mail.domain1.com"
MX record for domain1.com -> "mail.domain1.com"

Domain 2:
MX record for domain2.com -> "mail.domain1.com"

Domain 3:
MX record for domain3.com -> "mail.domain1.com"

hMailServer configuration:
"Local host name" -> "mail.domain1.com"
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

DRAW
New user
New user
Posts: 6
Joined: 2020-12-19 19:36

Re: can't send emails

Post by DRAW » 2020-12-19 22:10

@SorenR
Thank you for the info. I was scanning this whole forum but couldn't find that details. Do I have to change my server(local) dns entries too.? :oops:

User avatar
SorenR
Senior user
Senior user
Posts: 4195
Joined: 2006-08-21 15:38
Location: Denmark

Re: can't send emails

Post by SorenR » 2020-12-19 22:17

DRAW wrote:
2020-12-19 22:10
@SorenR
Thank you for the info. I was scanning this whole forum but couldn't find that details. Do I have to change my server(local) dns entries too.? :oops:
If you have DNS entries like the ones I listed above you are good. If not ... Domain2 and Domain3 do NOT need A or PTR records, only a MX record pointing to the A record from domain1.com belonging to your server and clearly also a MX record pointing to the domain1.com server.
If you have a PTR record it needs to point to your A record but it is not strictly needed. It will still work if you dont have.
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

DRAW
New user
New user
Posts: 6
Joined: 2020-12-19 19:36

Re: can't send emails

Post by DRAW » 2020-12-19 22:22

@SorenR Thank you for all your info. Since I have only one public IP, will the rDNS have issues when delivering mails ?

Thanks

User avatar
SorenR
Senior user
Senior user
Posts: 4195
Joined: 2006-08-21 15:38
Location: Denmark

Re: can't send emails

Post by SorenR » 2020-12-19 22:26

DRAW wrote:
2020-12-19 22:10
I was scanning this whole forum but couldn't find that details.
https://www.hmailserver.com/forum/viewt ... 88#p222588
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

User avatar
SorenR
Senior user
Senior user
Posts: 4195
Joined: 2006-08-21 15:38
Location: Denmark

Re: can't send emails

Post by SorenR » 2020-12-19 22:36

DRAW wrote:
2020-12-19 22:22
@SorenR Thank you for all your info. Since I have only one public IP, will the rDNS have issues when delivering mails ?

Thanks
Ideally rDNS should point to "mail.domain1.com"

mail.domain1.com is acting as postman on behalf of all domains having mail.domain1.com as MX record.

I gave up on my rDNS when I changed ISP last year. I now have MX records for the same server on different IP's on different ISP's.

I have a primary 200/200 fiber router with one ISP and a 70/40 4G router with another ISP. Failover between the public IP's and dynamic routing on my LAN. 4G, mail/ftp/web-servers and WiFi is powered with an UPS. I am allways online :mrgreen:
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

palinka
Senior user
Senior user
Posts: 2476
Joined: 2017-09-12 17:57

Re: can't send emails

Post by palinka » 2020-12-19 22:51

SorenR wrote:
2020-12-19 22:36
I have a primary 200/200 fiber router with one ISP and a 70/40 4G router with another ISP. Failover between the public IP's and dynamic routing on my LAN. 4G, mail/ftp/web-servers and WiFi is powered with an UPS. I am allways online :mrgreen:
Ironically, I downgraded my 4G usb modem to a 2G serial modem so it would work more reliably for SMS. No driver at all! :mrgreen:

DRAW
New user
New user
Posts: 6
Joined: 2020-12-19 19:36

Re: can't send emails

Post by DRAW » 2020-12-20 00:51

Thank you for your wonderful support. All working as it should be.
Any plans to get together and continue this brilliant project forward..? why not have a word with @martin to see the possibilities.
SorenR wrote:
2020-12-19 22:36
DRAW wrote:
2020-12-19 22:22
@SorenR Thank you for all your info. Since I have only one public IP, will the rDNS have issues when delivering mails ?

Thanks
Ideally rDNS should point to "mail.domain1.com"

mail.domain1.com is acting as postman on behalf of all domains having mail.domain1.com as MX record.

I gave up on my rDNS when I changed ISP last year. I now have MX records for the same server on different IP's on different ISP's.

I have a primary 200/200 fiber router with one ISP and a 70/40 4G router with another ISP. Failover between the public IP's and dynamic routing on my LAN. 4G, mail/ftp/web-servers and WiFi is powered with an UPS. I am allways online :mrgreen:

User avatar
SorenR
Senior user
Senior user
Posts: 4195
Joined: 2006-08-21 15:38
Location: Denmark

Re: can't send emails

Post by SorenR » 2020-12-20 01:47

DRAW wrote:
2020-12-20 00:51
Thank you for your wonderful support. All working as it should be.
Any plans to get together and continue this brilliant project forward..? why not have a word with @martin to see the possibilities.
We'r way ahead of you... People are sort of working on 5.7 and we have an advanced version of 5.6.8 too... It's all in the forum.
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

Post Reply