|
From: Marcos R. <we...@al...> - 2006-06-01 06:32:16
|
please let me know if that works...
I did have problems setting up something like that (I can not remember
exactly the syntax I used), and I end up having 2 sendmail processes
running (I called the second one "sendmail-local", and I started it like:
/usr/sbin/sendmail-local -bd -C /etc/mail/sendmail-local.cf
and /usr/sbin/sendmail-local is a symlink of /usr/sbin/sendmail
then I added /usr/sbin/sendmail-local to the init.d scripts!
not elegant... but it did work!!!
(btw... the only differences between /etc/mail/sendmail.cf and
/etc/mail/sendmail-local.cf is the DaemonPortOptions and where they store
the queue... ah... now that I read!!!... I used DaemonPortOptions instead
of Port= !!!!) (follows the diff between the cf's: )
diff /etc/mail/sendmail-local.cf /etc/mail/sendmail.cf
88a89
> Cwlocalhost
141a143
> C{w}localhost.localdomain
263c265
< O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTALOCAL
---
> O DaemonPortOptions=Port=smtp,Addr=nnn.nn.nnn.nn, Name=MTA
305c307
< O QueueDirectory=/var/spool/mqueue-local
---
> O QueueDirectory=/var/spool/mqueue
496c498
< O ControlSocketName=/var/spool/mqueue-local/.control-local
---
> #O ControlSocketName=/var/spool/mqueue/.control
508c510
< O PidFile=/var/run/sendmail-local.pid
---
> #O PidFile=/var/run/sendmail.pid
Cheers!
Marcos
ps: with Webmin I cloned the sendmail module... pointing the second one to
the right parameters!
On Thu, 1 Jun 2006, Jamie Cameron wrote:
> On 1/Jun/2006 00:05 Robert Moskowitz wrote ..
>> This is as much a sendmail question as a Webmin question.
>>
>> I need sendmail to listen on the loopback and one of the server's IP
>> address, and not another.
>>
>> So I cannot use the open: Port=smtp,Addr=0.0.0.0, Name=MTA
>>
>> But I have yet to find a reference on how to specify two listening addresses.
>>
>> One refernce seem to be talking about using multiple names, but not
>> clear. So perhaps I might do:
>>
>> Port=smtp,Addr=127.0.0.1, Name=Loop
>> Port=smtp,Addr=1192.168.0.2, Name=MTA
>>
>> ????
>>
>> The dialog field for Webmin Sendmail options, SMTP port options seems
>> to allow for multiple lines, but I can'tfind any clear answers.....
>
> You should be able to enter multiple lines (as above), each of which defines
> an SMTP port to listen on. I'm pretty sure your syntax is correct ..
>
> - Jamie
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and Risk!
> Fully trained technicians. The highest number of Red Hat certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
> -
> Forwarded by the Webmin mailing list at web...@li...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
>
|