>
>
>> utilities.
>>
>> >How would new messages he composes in mail be forwarded onto sendmail?
>> >similar to smapd?
>>
>> Your mail program (elm, pine, mailx, mail) should automatically
>> forward to the mailer if I am not wrong.
>>
>
>I think this may be a problem in a chrooted environment, as the mail would
>never make it to the queue directory, no?
>
These are the tricks I use...
First, you need to build a new copy of sendmail with
infinite loop checking disabled. Sendmail normally
checks to see if you are sending mail to yourself.
The check is in usersmtp.c. You can simply comment
out the check in 8.6.4. Then, COPY this sendmail to
your chrooted partition where it will be execed by
the mail command. DO NOT use this as your primary
copy of sendmail, NOR as the one started at boot time.
For sendmail 8.6.5, you can use -DNOLOOPBACKCHECK in the compile.
Next, you need to set up your sendmail.cf file in the chrooted
area. Replace foo.com with your domain. This sends the mail
message to sendmail via the sendmail TCP service...
Mlocal, P=[TCP], F=lasDFMmP, S=10, R=20, A=TCP foo.com
Mprog, P=[TCP], F=lasDFMmP, S=10, R=20, A=TCP foo.com
Well, there you have it. Another hack, but it works.
References:
|
|