advises on sendmail smtp+auth, mailertable, authinfo
- From: "fred" <febrard@xxxxxxx>
- Date: 28 Mar 2007 07:44:24 -0700
Hi,
I am trying to integrate an sms provider which provides an smtp server
with auth mechanism to an already existing email server which allows
users to be notified
by sms of an arriving email.
Here is how I wished it could work:
Receiving rules stand on the server. When they are triggered, they
generate an email to a special address for which a script is called
which transforms the body, inserts the destination(sms number) and
finally sends it to the sms provider's smtp server.
Quite simple.
So far, I have 2 pieces of systems that work.
On the one hand, I have the generation of the SMS string on the server
made by a "pipe to program" which calls a script, and on the other
hand another sendmail smtp server which forward all outgoing email to
the sms provider's smtp server. It act as an smtp client with auth
using SMART_HOST.
I thought that the script generating the string called by the first
server could call the other instance of sendmail, but unfortunately
the user used by sendmail to execute programs is unpriviledged and can
only use the mail command.
So here I am looking for advises for the easiest and best solution. I
have only been struggling with sendmail for last couple of days and
have little experience.
The sendmail server which acts as a client with auth should be used
only for delivery to the sms provider.
I thought I could use mailertable to use the sms provider's smtp
server together with authinfo to force the auth for this smtp.
But I could not manage to have authinfo and mailertable work on the
same config file. Probably configuration problems. (see below config
files)
Or to have another instance of sendmail configured only to act as smtp
client with auth, and which I would be able to call from my script.
That would be closer to what I have right now.
But I have no practical idea on how I could call this specific
sendmail instance.
Maybe someone has a better idea than the previous 2.
Any help, suggestion, is more than welcome. Hope my explanations were
clear.
thanks.
sendmail config file with authinfo and mailertable
sendmail.mc
FEATURE(`authinfo',`hash /etc/mail/auth/authinfo')dnl
FEATURE(`mailertable',`hash /etc/mail/mailertable')dnl
dnl define(`SMART_HOST',`[mail.bulksms.net]') (has been disabled)
/etc/mail/auth/authinfo
AuthInfo:[mail.bulksms.net] "U:root" "I:hidden" "P:hidden" "M:LOGIN
PLAIN"
AuthInfo: "U:root" "I:hidden" "P:hidden" "M:LOGIN PLAIN"
/etc/mail/mailertable
tradeasmsgateway.bulksms.net smtp:[mail.bulksms.net]
mailertable not working.
result of tests with -bt
0 0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxparse input: 0 @ tradeasmsgateway . bulksms . net
Parse0 input: 0 @ tradeasmsgateway . bulksms . net
Parse0 returns: 0 @ tradeasmsgateway . bulksms . net
ParseLocal input: 0 @ tradeasmsgateway . bulksms . net
ParseLocal returns: 0 @ tradeasmsgateway . bulksms . net
Parse1 input: 0 @ tradeasmsgateway . bulksms . net
Parse1 returns: $# local $: 0 @ tradeasmsgateway . bulksms .
net
parse returns: $# local $: 0 @ tradeasmsgateway . bulksms .
net
all local domains
$=wlinuxaptiva.tradea.fr
tradea.fr
tradea.dnsalias.com
localhost
[192.168.1.2]
linuxaptiva
.
- Follow-Ups:
- Prev by Date: Re: alias forwarding: stop DSN backscatter?
- Next by Date: Re: How many OSes is Sendmail on by default these days?
- Previous by thread: SMTP Auth and Spamcop
- Next by thread: Re: advises on sendmail smtp+auth, mailertable, authinfo
- Index(es):
Relevant Pages
|