advises on sendmail smtp+auth, mailertable, authinfo



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@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
parse 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
$=w
linuxaptiva.tradea.fr
tradea.fr
tradea.dnsalias.com
localhost
[192.168.1.2]
linuxaptiva

.



Relevant Pages

  • Re: advises on sendmail smtp+auth, mailertable, authinfo
    ... I am trying to integrate an sms provider which provides an smtp server ... It act as an smtp client with auth ...
    (comp.mail.sendmail)
  • Re: SMTP AUTH
    ... AUTH is not a script operation. ... client connects to the SMTP server and sends EHLO, ...
    (microsoft.public.scripting.vbscript)
  • Re: User Creation problem in AD
    ... its being used as Pre-production purpose to implement SMS ... # Jorge de Almeida Pinto # MVP Windows Server - Directory Services ... BLOG --> http://blogs.dirteam.com/blogs/jorge/default.aspx ...
    (microsoft.public.windows.server.active_directory)
  • Re: minimum and recommended hardware requirement
    ... SMS Site Server System Requirements ... Windows 2000 Datacenter Server ... Microsoft's SMS 2003 support for server operating systems requires ...
    (microsoft.public.sms.setup)
  • Re: Failed to get a SQL Server connection
    ... SMS is installed on a Windows Server 2003 SP1, ... We already did SMS ... Possible cause: SQL Server problem. ... Verify that SMS can access the SMS site database. ...
    (microsoft.public.sms.setup)