Koozali.org formerly Contribs.org

MAILHOST /QMAILHOST environment variable

Offline Stefano

  • *
  • 10,805
  • Skype account: maghissimo
    • Smeserver italian community
MAILHOST /QMAILHOST environment variable
« on: March 02, 2006, 01:06:19 PM »
Hi all..

Sme 6.0.1 in server and gateway setup..

domain name is something like 'myname.local'

smarthost is my isp smtp server..

Every administrative mail (from cron daemon ecc) is sent to an external mail address..

That's what I get:

From: MAILER-DAEMON@myname.local
To: root@myname.local
Subject: failure notice

Hi. This is the qmail-send program at myname.local.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
Connected to SMTP_IP_SERVER but sender was rejected.
Remote host said: 553 <root@myname.local> unable to verify address

so I've googled a bit and I've found MAILHOST env variable here


tested with
export MAILHOST='another_domain.tld'

mail -s 'test' external_address < test.txt

from root console.. works perfectly :-)

Well, that's the question..

Where can I add MAILHOST env variable so that make it persistent?


Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia