sendmail not using .forward file
sendmail not using .forward file
am 24.01.2008 21:12:00 von Hemant Shah
Folks,
I just installed Red Hat fc7 on a system, and it installed sendmail
8.14.1.
# sendmail -d0.1
Version 8.14.1
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT
============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = lidp1
(canonical domain name) $j = lidp1.lidp.com
(subdomain name) $m = lidp.com
(node name) $k = lidp1
========================================================
The sendmail does not use the .forward file in the users home directory.
On the other linux system I have sendmail 8.11.6 installed and I get following
output:
# sendmail -v shah
/home/shah/.forward: line 1: forwarding to shah@mail.mydomain.com
On fc7 system I run sendmail command I get nothing:
# sendmail -v shah
If I send the e-mail it tries to deliver it locally.
If seems that sendmail V8.14.1 uses two config files, sendmail.cf and
submit.cf.
What do I need to change so that sendmail uses .forward file?
Thanks.
--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: NoJunkMailshah@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Re: sendmail not using .forward file
am 24.01.2008 21:59:08 von Andrzej Filip
Hemant Shah writes:
> Folks,
>
> I just installed Red Hat fc7 on a system, and it installed sendmail
> 8.14.1.
>
> # sendmail -d0.1
> Version 8.14.1
> Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
> MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
> NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
> TCPWRAPPERS USERDB USE_LDAP_INIT
>
> ============ SYSTEM IDENTITY (after readcf) ============
> (short domain name) $w = lidp1
> (canonical domain name) $j = lidp1.lidp.com
> (subdomain name) $m = lidp.com
> (node name) $k = lidp1
> ========================================================
>
> The sendmail does not use the .forward file in the users home directory.
>
> On the other linux system I have sendmail 8.11.6 installed and I get following
> output:
>
> # sendmail -v shah
> /home/shah/.forward: line 1: forwarding to shah@mail.mydomain.com
>
> On fc7 system I run sendmail command I get nothing:
>
> # sendmail -v shah
>
>
> If I send the e-mail it tries to deliver it locally.
>
> If seems that sendmail V8.14.1 uses two config files, sendmail.cf and
> submit.cf.
>
> What do I need to change so that sendmail uses .forward file?
Locate what is wrong *first*.
Use the command below as root to locate "trouble makers":
sendmail -v -d27.4 -d44.4 -bv shah
-d27.4 - tracking alias and forward expansion
-d44.4 - tracking file permission checks [too much is bad]
--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Non-Determinism is not meant to be reasonable.
-- M. J. 0'Donnell
----
http://groups.google.com/groups?selm=87ejc7hrdv@josiah.fsf.h obby-site.com
Re: sendmail not using .forward file
am 24.01.2008 22:20:08 von spam
"Hemant Shah" wrote in message
news:fnareg$sjp$1@new7.xnet.com...
>
> Folks,
>
> I just installed Red Hat fc7 on a system, and it installed sendmail
> 8.14.1.
As long as you're installing a new version, might as well install the
CURRENT version: 8.14.2.
As noted in the other reply, check your search directories and file
permissions.
Re: sendmail not using .forward file
am 25.01.2008 18:45:11 von Hemant Shah
While stranded on information super highway Andrzej Adam Filip wrote:
> Hemant Shah writes:
>
>> Folks,
>>
>> I just installed Red Hat fc7 on a system, and it installed sendmail
>> 8.14.1.
>>
>> # sendmail -d0.1
>> Version 8.14.1
>> Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
>> MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
>> NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
>> TCPWRAPPERS USERDB USE_LDAP_INIT
>>
>> ============ SYSTEM IDENTITY (after readcf) ============
>> (short domain name) $w = lidp1
>> (canonical domain name) $j = lidp1.lidp.com
>> (subdomain name) $m = lidp.com
>> (node name) $k = lidp1
>> ========================================================
>>
>> The sendmail does not use the .forward file in the users home directory.
>>
>> On the other linux system I have sendmail 8.11.6 installed and I get following
>> output:
>>
>> # sendmail -v shah
>> /home/shah/.forward: line 1: forwarding to shah@mail.mydomain.com
>>
>> On fc7 system I run sendmail command I get nothing:
>>
>> # sendmail -v shah
>>
>>
>> If I send the e-mail it tries to deliver it locally.
>>
>> If seems that sendmail V8.14.1 uses two config files, sendmail.cf and
>> submit.cf.
>>
>> What do I need to change so that sendmail uses .forward file?
>
> Locate what is wrong *first*.
>
> Use the command below as root to locate "trouble makers":
> sendmail -v -d27.4 -d44.4 -bv shah
>
> -d27.4 - tracking alias and forward expansion
> -d44.4 - tracking file permission checks [too much is bad]
I tried the above command as root and it found the .forward file, but when
I run it as a user it complained that it cannot chdir to /var/spool/mqueue/.
My scripts run as a user and they use sendmail command to send e-mail.
I checked the permission on the binary and found that on the older version
of sendmail the ownership/permissions are as follows:
# ls -l /usr/sbin/sendmail.sendmail
-r-sr-xr-x 1 root root 451760 Sep 17 2003 /usr/sbin/sendmail.sendmail
on the newer version the ownership/permissions are as follows:
# ls -l /usr/sbin/sendmail.sendmail
-rwxr-sr-x 1 root smmsp 796056 2007-09-17 12:29 /usr/sbin/sendmail.sendmail
so I changed the ownership/permissions and the above command did not show
any errors.
In older version of sendmail I have setup smart relay host (DS) and sendmail
looks at the .forward file and sends e-mail to the address in .forward file
to the smart relay host for the delivery.
In the latest version the DS does not work. So I setup MTAHost
(D{MTAHost}[relayhost]) in submit.cf file, now it does not look at the
..forward file and sends it directly to the mart relay host.
What I want to do is for sendmail to look at the .forward file and then
send the e-mail to the address in the .forward file using smart relay host.
How do I do it?
Thanks.
>
> --
> [pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
> Open-Sendmail: http://open-sendmail.sourceforge.net/
> Non-Determinism is not meant to be reasonable.
> -- M. J. 0'Donnell
> ----
> http://groups.google.com/groups?selm=87ejc7hrdv@josiah.fsf.h obby-site.com
--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: NoJunkMailshah@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Re: sendmail not using .forward file
am 25.01.2008 18:57:19 von Andrzej Filip
Hemant Shah writes:
> While stranded on information super highway Andrzej Adam Filip wrote:
>> Hemant Shah writes:
>>
>>> Folks,
>>>
>>> I just installed Red Hat fc7 on a system, and it installed sendmail
>>> 8.14.1.
>>>
>>> # sendmail -d0.1
>>> Version 8.14.1
>>> Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
>>> MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
>>> NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
>>> TCPWRAPPERS USERDB USE_LDAP_INIT
>>>
>>> ============ SYSTEM IDENTITY (after readcf) ============
>>> (short domain name) $w = lidp1
>>> (canonical domain name) $j = lidp1.lidp.com
>>> (subdomain name) $m = lidp.com
>>> (node name) $k = lidp1
>>> ========================================================
>>>
>>> The sendmail does not use the .forward file in the users home directory.
>>>
>>> On the other linux system I have sendmail 8.11.6 installed and I get following
>>> output:
>>>
>>> # sendmail -v shah
>>> /home/shah/.forward: line 1: forwarding to shah@mail.mydomain.com
>>>
>>> On fc7 system I run sendmail command I get nothing:
>>>
>>> # sendmail -v shah
>>>
>>>
>>> If I send the e-mail it tries to deliver it locally.
>>>
>>> If seems that sendmail V8.14.1 uses two config files, sendmail.cf and
>>> submit.cf.
>>>
>>> What do I need to change so that sendmail uses .forward file?
>>
>> Locate what is wrong *first*.
>>
>> Use the command below as root to locate "trouble makers":
>> sendmail -v -d27.4 -d44.4 -bv shah
>>
>> -d27.4 - tracking alias and forward expansion
>> -d44.4 - tracking file permission checks [too much is bad]
>
> I tried the above command as root and it found the .forward file, but
> when I run it as a user it complained that it cannot chdir to
> /var/spool/mqueue/.
It is normal behavior for sendmail-8.12+ installed in default mode.
> My scripts run as a user and they use sendmail command to send e-mail.
> I checked the permission on the binary and found that on the older version
> of sendmail the ownership/permissions are as follows:
>
> # ls -l /usr/sbin/sendmail.sendmail
> -r-sr-xr-x 1 root root 451760 Sep 17 2003 /usr/sbin/sendmail.sendmail
>
> on the newer version the ownership/permissions are as follows:
>
> # ls -l /usr/sbin/sendmail.sendmail
> -rwxr-sr-x 1 root smmsp 796056 2007-09-17 12:29 /usr/sbin/sendmail.sendmail
>
> so I changed the ownership/permissions and the above command did not show
> any errors.
Sendmail-8.12 is no longer (by default) installed as set root id as
a *very* sensible security precaution. I suggest you restoring
permission you have changed.
http://www.sendmail.org/security/secure-install.php
> In older version of sendmail I have setup smart relay host (DS) and sendmail
> looks at the .forward file and sends e-mail to the address in .forward file
> to the smart relay host for the delivery.
>
> In the latest version the DS does not work. So I setup MTAHost
> (D{MTAHost}[relayhost]) in submit.cf file, now it does not look at the
> .forward file and sends it directly to the mart relay host.
submit.cf *is not* configured to conduct alias expansion and ~/.forward
files expansion. It is designed to run without root privileges.
Reliable ~/.forward files expansion requires root privileges.
> What I want to do is for sendmail to look at the .forward file and then
> send the e-mail to the address in the .forward file using smart relay host.
>
> How do I do it?
Do not change MTAHost in submit.cf and leave ~/.forward expansion to
local sendmail daemon listening at 127.0.0.1:25 configured via sendmail.cf.
--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
First off - Quake is simply incredible. It lets you repeatedly kill your
boss in the office without being arrested. :)
-- Signal 11, in a slashdot comment
----
http://groups.google.com/groups?selm=
Re: sendmail not using .forward file
am 25.01.2008 23:03:05 von Hemant Shah
While stranded on information super highway Andrzej Adam Filip wrote:
> Hemant Shah writes:
>
>> While stranded on information super highway Andrzej Adam Filip wrote:
>>> Hemant Shah writes:
>>>
>>>> Folks,
>>>>
>>>> I just installed Red Hat fc7 on a system, and it installed sendmail
>>>> 8.14.1.
>>>>
>>>> # sendmail -d0.1
>>>> Version 8.14.1
>>>> Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
>>>> MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
>>>> NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
>>>> TCPWRAPPERS USERDB USE_LDAP_INIT
>>>>
>>>> ============ SYSTEM IDENTITY (after readcf) ============
>>>> (short domain name) $w = lidp1
>>>> (canonical domain name) $j = lidp1.lidp.com
>>>> (subdomain name) $m = lidp.com
>>>> (node name) $k = lidp1
>>>> ========================================================
>>>>
>>>> The sendmail does not use the .forward file in the users home directory.
>>>>
>>>> On the other linux system I have sendmail 8.11.6 installed and I get following
>>>> output:
>>>>
>>>> # sendmail -v shah
>>>> /home/shah/.forward: line 1: forwarding to shah@mail.mydomain.com
>>>>
>>>> On fc7 system I run sendmail command I get nothing:
>>>>
>>>> # sendmail -v shah
>>>>
>>>>
>>>> If I send the e-mail it tries to deliver it locally.
>>>>
>>>> If seems that sendmail V8.14.1 uses two config files, sendmail.cf and
>>>> submit.cf.
>>>>
>>>> What do I need to change so that sendmail uses .forward file?
>>>
>>> Locate what is wrong *first*.
>>>
>>> Use the command below as root to locate "trouble makers":
>>> sendmail -v -d27.4 -d44.4 -bv shah
>>>
>>> -d27.4 - tracking alias and forward expansion
>>> -d44.4 - tracking file permission checks [too much is bad]
>>
>> I tried the above command as root and it found the .forward file, but
>> when I run it as a user it complained that it cannot chdir to
>> /var/spool/mqueue/.
>
> It is normal behavior for sendmail-8.12+ installed in default mode.
>
>> My scripts run as a user and they use sendmail command to send e-mail.
>> I checked the permission on the binary and found that on the older version
>> of sendmail the ownership/permissions are as follows:
>>
>> # ls -l /usr/sbin/sendmail.sendmail
>> -r-sr-xr-x 1 root root 451760 Sep 17 2003 /usr/sbin/sendmail.sendmail
>>
>> on the newer version the ownership/permissions are as follows:
>>
>> # ls -l /usr/sbin/sendmail.sendmail
>> -rwxr-sr-x 1 root smmsp 796056 2007-09-17 12:29 /usr/sbin/sendmail.sendmail
>>
>> so I changed the ownership/permissions and the above command did not show
>> any errors.
>
> Sendmail-8.12 is no longer (by default) installed as set root id as
> a *very* sensible security precaution. I suggest you restoring
> permission you have changed.
> http://www.sendmail.org/security/secure-install.php
>
>> In older version of sendmail I have setup smart relay host (DS) and sendmail
>> looks at the .forward file and sends e-mail to the address in .forward file
>> to the smart relay host for the delivery.
>>
>> In the latest version the DS does not work. So I setup MTAHost
>> (D{MTAHost}[relayhost]) in submit.cf file, now it does not look at the
>> .forward file and sends it directly to the mart relay host.
>
> submit.cf *is not* configured to conduct alias expansion and ~/.forward
> files expansion. It is designed to run without root privileges.
> Reliable ~/.forward files expansion requires root privileges.
>
>> What I want to do is for sendmail to look at the .forward file and then
>> send the e-mail to the address in the .forward file using smart relay host.
>>
>> How do I do it?
>
> Do not change MTAHost in submit.cf and leave ~/.forward expansion to
> local sendmail daemon listening at 127.0.0.1:25 configured via sendmail.cf.
Thanks for the explaination. So it seems that in new version of
sendmail you have sendmail server and sendmail client. I changed the
ownership/permissions to the original and changed MTAHost back to 127.0.0.1.
I started the sendmail service and was able to send the email properly.
Until now I was not running sendmail daemon on the newer version.
This is different from the previous versions where I did not start the
sendmail daemon because the system will never accept incoming e-mail, I just
ran sendmail command from command and was able to send the e-mail to
relayhost.
I would prefer not to run sendmail daemon. Is it possible?
>
> --
> [pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
> Open-Sendmail: http://open-sendmail.sourceforge.net/
> First off - Quake is simply incredible. It lets you repeatedly kill your
> boss in the office without being arrested. :)
> -- Signal 11, in a slashdot comment
> ----
> http://groups.google.com/groups?selm=
--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: NoJunkMailshah@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Re: sendmail not using .forward file
am 25.01.2008 23:32:01 von Andrzej Filip
Hemant Shah writes:
> [...]
> Thanks for the explaination. So it seems that in new version of
> sendmail you have sendmail server and sendmail client. I changed the
> ownership/permissions to the original and changed MTAHost back to 127.0.0.1.
> I started the sendmail service and was able to send the email properly.
> Until now I was not running sendmail daemon on the newer version.
>
> This is different from the previous versions where I did not start the
> sendmail daemon because the system will never accept incoming e-mail, I just
> ran sendmail command from command and was able to send the e-mail to
> relayhost.
>
> I would prefer not to run sendmail daemon. Is it possible?
submit.cf by default submits messages to 127.0.0.1:25
You can change it to smtp port on another host [as you did].
Making submit.cf honor local ~/.forward files would be very tricky.
There are some possibilities to consider but I would not even dare to
present them to less determined minds :-)
[ BTW it also does not expand local aliases (/etc/mail/aliases) ]
--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Sometimes when you look into his eyes you get the feeling that someone
else is driving.
-- David Letterman
----
http://groups.google.com/groups?selm=