This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Correct HELO message

Post/Debate your Suggestions & Requests of XigmaNAS here. This ONLY pertains to XigmaNAS.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
davorin
NewUser
NewUser
Posts: 12
Joined: 31 Oct 2012 09:36
Status: Offline

Correct HELO message

Post by davorin »

Why is it that nas4free uses "localhost" for the HELO command when sending mail
and not the configured hostname with domain name?

I'm not open up my postfix server to reenable a lot of spammers, who use "localhost" as well (o;

christopherve7alb
NewUser
NewUser
Posts: 1
Joined: 23 Jan 2013 06:55
Status: Offline

Re: Correct HELO message

Post by christopherve7alb »

I would also really like this! I have the same issue with my postfix mail server rejecting email sent from my nas4free box

windkoek
NewUser
NewUser
Posts: 1
Joined: 17 Sep 2015 16:31
Status: Offline

Re: Correct HELO message (fix)

Post by windkoek »

Hi,
I know this thread is really old now, but this problem really bothered me.
There should really be a setting in the WebGUI for this - it's so easy to solve...

To fix it really dirty, adjust the settings using the WebGUI, then modify /var/etc/msmtp.conf and add this line:

Code: Select all

domain fqdn.example.com
where fqdn.example.com is of course whatever your FQDN is.

Then, protect this file from any further modifications (I don't know why, but nas4free sees the necessity to completely overwrite the file on every change or testmail, making it impossible to just simply add the missing line):

Code: Select all

~# chflags schg /var/etc/msmtp.conf
To be able to edit the file again:

Code: Select all

~# chflags noschg /var/etc/msmtp.conf

This solutions kinda sucks, but it works.
Hope it's helpful for someone.

seti
NewUser
NewUser
Posts: 1
Joined: 25 May 2016 08:28
Status: Offline

Re: Correct HELO message

Post by seti »

Hi,
I had the same problem,
to fix it I modified the script /etc/rc.d/msmtp, to add the domain field with the configured domain name:

Code: Select all

# diff -u /etc/rc.d/msmtp{.orig,}
--- /etc/rc.d/msmtp.orig	2016-05-25 08:33:07.613799000 +0200
+++ /etc/rc.d/msmtp	2016-05-25 06:26:12.248599000 +0200
@@ -27,6 +27,7 @@
 # Create msmtp.conf configuration
 /usr/local/bin/xml sel -t \
 	-o "account default" -n \
+	-v "concat('domain ',//system/domain)" -n \
 	-v "concat('host ',//system/email/server)" -n \
 	-v "concat('port ',//system/email/port)" -n \
 	-o "protocol smtp" -n \
 

User avatar
zoon01
Developer
Developer
Posts: 724
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: Correct HELO message

Post by zoon01 »

done for 10.3
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

Post Reply

Return to “Suggestions & Requests”