Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: guest22 on July 18, 2008, 07:52:55 AM
-
Hi,
quick question. How, where is the FROM domain set when using the 'mail' command from the command line please?
TIA
guest
-
Hi,
quick question. How, where is the FROM domain set when using the 'mail' command from the command line please?
TIA
guest
My guess is somewhere like the mbox file in the users home folder.
-
where is the FROM domain set when using the 'mail' command from the command line please?
You should script the mail command and set appropriate qmail env variables:
#!/bin/sh
# Set QMAIL variables for sender, user@domain
export QMAILUSER=user
export QMAILHOST=domain
/bin/mail blah...
Darrell
-
Thanks both. I've scripted it like Darrell suggested. Works perfectly fine.
Thanks for the swift reply.
guest