[ale] user "mail" unable to access outsite content?

Robert L. Harris Robert.L.Harris at rdlg.net
Thu Jan 16 08:57:36 EST 2003



  I'm trying to use exim with a piped alias to redirect emails to my
pager.  I've modified a script to convert the email to a web form.  If I
send an email to myself, save the mail to a file then execute:

cat /tmp/message |/usr/local/bin/Pager.pl

It runs great.  If I put the "|/usr/local/bin/Pager.pl" into my aliases
and kick it off.  I end up getting some rather cryptic error messages.
A bit of digging and debug message finally pointed out that the
connection was timing out.

On an off chance I did a "su - mail" and just tried a:

lynx http://messaging.nextel.com/....<path to cgi>

It times out.  If I run it as myself I get the form almost instantly.

If it helps I also straced the lynx for the mail user:

write(1, "\r\33[0;7m\17Making HTTP connection t"..., 58) = 58
rt_sigaction(SIGTSTP, {0x40042270, [], SA_RESTORER|SA_RESTART,
0x4008d898}, NULL, 8) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
ioctl(3, FIONBIO, [1])                  = 0
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("170.206.252.9")}, 16) = -1 EINPROGRESS (Operation
now in progress)
select(1024, NULL, [3], NULL, {0, 100000}) = 0 (Timeout)
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("170.206.252.9")}, 16) = -1 EALREADY (Operation
already in progress)
gettimeofday({1042725097, 561510}, NULL) = 0
select(1024, [0], NULL, NULL, {0, 100}) = 0 (Timeout)
select(1024, NULL, [3], NULL, {0, 100000}) = 0 (Timeout)
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("170.206.252.9")}, 16) = -1 EALREADY (Operation
already in progress)
gettimeofday({1042725097, 671436}, NULL) = 0
select(1024, [0], NULL, NULL, {0, 100}) = 0 (Timeout)
select(1024, NULL, [3], NULL, {0, 100000}) = 0 (Timeout)
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("170.206.252.9")}, 16) = -1 EALREADY (Operation
already in progress)
gettimeofday({1042725097, 781385}, NULL) = 0
select(1024, [0], NULL, NULL, {0, 100}) = 0 (Timeout)
select(1024, NULL, [3], NULL, {0, 100000}) = 0 (Timeout)

The last block:
connect(3, {sa_family=AF_INET, sin_port=htons(80),
sin_addr=inet_addr("170.206.252.9")}, 16) = -1 EALREADY (Operation
already in progress)
gettimeofday({1042725097, 781385}, NULL) = 0
select(1024, [0], NULL, NULL, {0, 100}) = 0 (Timeout)
select(1024, NULL, [3], NULL, {0, 100000}) = 0 (Timeout)

repeats until it gives up.  

Thoughts?
  Robert

:wq!
---------------------------------------------------------------------------
Robert L. Harris                     | PGP Key ID: FC96D405
                               
DISCLAIMER:
      These are MY OPINIONS ALONE.  I speak for no-one else.
FYI:
 perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'


 PGP signature




More information about the Ale mailing list