Am Dienstag 28 Mai 2002 09:18 schrieb Greg Morgan:
> I know my understanding of mail systems is limited. But I am wondering
> if an inituser variable should be created in POSIXness.conf file. This
> would allow a user to configure who mail is coming from. However, even
> if I change the POSIXness.mail line from
> ...
> { echo "RSET"
> echo "HELO $fqdn"
> echo "MAIL FROM:<$user@$fqdn>"
> ...
> to
> ...
> { echo "RSET"
> echo "HELO $fqdn"
> echo "MAIL FROM:<[EMAIL PROTECTED]>"
> ...
> I still received email from [EMAIL PROTECTED] and not my
> desired [EMAIL PROTECTED]
Dumb question - any chance you're misguided by the smtp-rfc-chat?
If you look into POSIXness mail a few lines further you'll find
echo "From: $user@$fqdn"
which is the place where the "From:" in your mail is defined.
> The POSIXness.mail diff is below.
> [root@baloo orig]# diff -bu POSIXness.mail POSIXness.mail.new
> --- POSIXness.mail Mon May 27 23:36:16 2002
> +++ POSIXness.mail.new Mon May 27 23:36:16 2002
> @@ -183,6 +183,8 @@
>
> fqdn=${MAIL_DOMAIN:-`hostname -f`}
> user=${USER:-$LOGNAME}
> + #if mail is started from init set user to root
> + user=${user:-root}
> smtpserv=${MAIL_SERVER:-mail}
>
> while getopts va:b:c:d:h:s: opt ; do
I really hope this one will either be improved or just make it's way into
Bering rc-next and Dachstein 1.0.x
kp
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel