serialmail for direct transfer to dialup smtp?

Sean Chant <[email protected]>
Newsgroups gmane.mail.serialmail
Message-ID <[email protected]>
hello.                                                                                       

i've  installed serialmail for sending outgoing mail to my                                  
dialup host's smtp server. [had to, as a matter of fact. apparently
the ip address they've given me is blacklisted somewhere]


i followed the directions in serialmail's  TOISP file, but i was                           
hoping that i could set things up such that mails would be sent                              
directly to the the smtp server, instead of being qued in                                 
~alias/pppdir

i've not been sure how to use tcplient and serialsmtp for this,                              
however, and was hoping that someone might have a word of advice.                            


the following is the shell script i've been trying to use for this --                        
i'll call it /usr/bin/foo -- with '|/usr/bin/foo' in                                         
~alias/.qmail-ppp-default , and the right thing in 'virtualdomains'                          


this script is non-functional, but maybe it shows, well enough, what                         
i'm trying to get at                                                                         



#!/bin/sh                                                                                    

if [ -z "$HOSTNAME" ];                                                                       
then HOSTNAME=$(hostname)                                                                    
fi                                                                                           

echo "sendfoo executing"                                                                     

exec tcpclient -RHl0 -- mail.gofresno.com 25  \                                              
   /usr/bin/serialsmtp alias-ppp- $HOSTNAME  7<&1                                            



#EOF                                                                                         


thank you                                                                                    

--                                                                                           
sean                                                                                         
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.