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

Title: FROM domain when using 'mail' command on console
Post 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
Title: Re: FROM domain when using 'mail' command on console
Post by: cactus on July 18, 2008, 08:10:25 AM
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.
Title: Re: FROM domain when using 'mail' command on console
Post by: dmay on July 18, 2008, 05:08:40 PM
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
Title: Re: FROM domain when using 'mail' command on console
Post by: guest22 on July 19, 2008, 09:34:12 AM
Thanks both. I've scripted it like Darrell suggested. Works perfectly fine.

Thanks for the swift reply.

guest