FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 07-09-2008, 08:23 PM
Antonio Olivares
 
Default sendmail

--- On Tue, 7/8/08, Tim <ignored_mailbox@yahoo.com.au> wrote:

> From: Tim <ignored_mailbox@yahoo.com.au>
> Subject: Re: sendmail
> To: olivares14031@yahoo.com, "For users of Fedora" <fedora-list@redhat.com>
> Date: Tuesday, July 8, 2008, 11:47 PM
> On Tue, 2008-07-08 at 22:30 -0700, Antonio Olivares wrote:
>
> > I have had some problems trying to update a machine
> with sendmail. I
> > have applied your script but changed the ntpd service
> to sendmail.
> >
> > I have NetworkManager running, but it does not do
> anything. I use
> > dialup to connect and technically do not use it. I
> ran the modified
> > script with sendmail in place of ntpd and I got
> >
> > [root@localhost Documents]# ./sendmail-script
> > ./sendmail-script: line 14: [: ==: unary operator
> expected
> > ./sendmail-script: line 26: [: ==: unary operator
> expected
>
> Show us the script that you're using. But the
> problem's most likely
> down to you expecting to run stand-alone.
>
---

[olivares@localhost ~]$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/olivares": 1 message 1 new
>N 1 MAILER-DAEMON@localh Wed Jul 9 15:15 208/7413 "Warning: could not se"
&
Message 1:
>From MAILER-DAEMON@localhost.localdomain Wed Jul 9 15:15:54 2008
Date: Wed, 9 Jul 2008 15:15:54 -0500
From: Mail Delivery Subsystem <MAILER-DAEMON@localhost.localdomain>
To: <olivares@localhost.localdomain>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="m69KFshC002007.1215634554/localhost.localdomain"
Subject: Warning: could not send message for past 4 hours
Auto-Submitted: auto-generated (warning-timeout)

This is a MIME-encapsulated message

--m69KFshC002007.1215634554/localhost.localdomain

**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Wed, 9 Jul 2008 00:18:48 -0500
from localhost.localdomain [127.0.0.1]

----- Transcript of session follows -----
451 counter.li.org: Name server timeout
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old

--m69KFshC002007.1215634554/localhost.localdomain
Content-Type: message/delivery-status

Reporting-MTA: dns; localhost.localdomain
Arrival-Date: Wed, 9 Jul 2008 00:18:48 -0500

Final-Recipient: RFC822; machine-registration@counter.li.org
Action: delayed
Status: 4.4.3
Last-Attempt-Date: Wed, 9 Jul 2008 15:15:54 -0500
Will-Retry-Until: Mon, 14 Jul 2008 00:18:48 -0500

--m69KFshC002007.1215634554/localhost.localdomain
<----- snip removed ------>
--m69KFshC002007.1215634554/localhost.localdomain--


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-09-2008, 09:06 PM
Todd Zullinger
 
Default sendmail

Antonio Olivares wrote:
> --- On Tue, 7/8/08, Tim <ignored_mailbox@yahoo.com.au> wrote:
>>> [root@localhost Documents]# ./sendmail-script

>>> ./sendmail-script: line 14: [: ==: unary operator expected
>>> ./sendmail-script: line 26: [: ==: unary operator expected
>>
>> Show us the script that you're using. But the problem's most
>> likely down to you expecting to run stand-alone.

This is because you're running the script without any arguments.
Lines 14 and 26 both test the second argument as a string, like:

[ $2 == "up" ]

Since you provided no second argument, $2 is empty and you've
basically done this:

[ == "up" ]

Which causes the error. You can make the script more robust by
quoting the $2 in the tests:

[ "$2" == "up" ]

That will only prevent the bash error, not make the script do anything
when run without the proper arguments. IIRC, NetworkManager scripts
are called with 2 arguments, the interface (e.g. eth0 or wlan0) and
it's status (e.g. up or down).

--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
Does it follow that I reject all authority? Perish the thought. In the
matter of boots, I defer to the authority of the boot-maker.
-- Mikhail Bakunin

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-09-2008, 10:42 PM
Antonio Olivares
 
Default sendmail

--- On Wed, 7/9/08, Todd Zullinger <tmz@pobox.com> wrote:

> From: Todd Zullinger <tmz@pobox.com>
> Subject: Re: sendmail
> To: fedora-list@redhat.com
> Date: Wednesday, July 9, 2008, 2:06 PM
> Antonio Olivares wrote:
> > --- On Tue, 7/8/08, Tim
> <ignored_mailbox@yahoo.com.au> wrote:
> >>> [root@localhost Documents]# ./sendmail-script
>
> >>> ./sendmail-script: line 14: [: ==: unary
> operator expected
> >>> ./sendmail-script: line 26: [: ==: unary
> operator expected
> >>
> >> Show us the script that you're using. But the
> problem's most
> >> likely down to you expecting to run stand-alone.
>
> This is because you're running the script without any
> arguments.
> Lines 14 and 26 both test the second argument as a string,
> like:
>
> [ $2 == "up" ]
>
> Since you provided no second argument, $2 is empty and
> you've
> basically done this:
>
> [ == "up" ]
>
> Which causes the error. You can make the script more
> robust by
> quoting the $2 in the tests:
>
> [ "$2" == "up" ]
>
> That will only prevent the bash error, not make the script
> do anything
> when run without the proper arguments. IIRC,
> NetworkManager scripts
> are called with 2 arguments, the interface (e.g. eth0 or
> wlan0) and
> it's status (e.g. up or down).
>
> --
> Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL:
> www.pobox.com/~tmz/pgp
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~

Thanks Todd,

I will change the arguments. but I have NetWorkManager running, but it does not interfere with the connection. There an "eth0", but there is no ethernet cable, I do not bring up the network upon boot. I start a connection with wvdial and then I end the session with CTRL+C.

If I do a ifconfig -a I get something like

root@lcoalhost:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:40:f4:53:5a:ab
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:10 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 B) TX bytes:100 (100.0 B)

ppp0 Link encap:Point-to-Point Protocol
inet addr:66.201.8.16 P-t-P:66.201.8.6 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:813 errors:0 dropped:0 overruns:0 frame:0
TX packets:883 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:591676 (577.8 KiB) TX bytes:167245 (163.3 KiB)

root@lcoalhost:~$

But I get different numbers when connecting. The resolv.conf file is the same all the time

root@localhost:~# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT7072000
--> Waiting for carrier.
ATDT7072000
CONNECT 36000 V42bis
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Jul 9 17:29:58 2008
--> Pid of pppd: 32433
--> Using interface ppp0
--> pppd: [06][08][10]06][08]
--> pppd: [06][08][10]06][08]
--> pppd: [06][08][10]06][08]
--> pppd: [06][08][10]06][08]
--> local IP address 66.201.8.16
--> pppd: [06][08][10]06][08]
--> remote IP address 66.201.8.6
--> pppd: [06][08][10]06][08]
--> primary DNS address 66.201.0.203
--> pppd: [06][08][10]06][08]
--> secondary DNS address 66.94.120.9
--> pppd: [06][08][10]06][08]

I thought I should turn off NetWorkManager, but since it does not interfere with connection, I left it on. In Fedora 8, I turned it off and Fedora 7 as well. On wired connections from school, I failed to update linux counter with their script even with cron job. I wondered sometimes if it was their server that was down, or fedora that refused to send the message.

Thanks for helping.

Regards,

Antonio




--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-10-2008, 01:02 AM
Tim
 
Default sendmail

On Wed, 2008-07-09 at 12:35 -0400, Bill Davidsen wrote:
> Doesn't your sendmail retry by itself every once in a while? Mine all
> do, I'll occasionally get a warning email that a message couldn't be
> delivered for 4 hours, and later I get a reply, so I know it was
> delivered.

It does, but if the network interface wasn't up before sendmail started,
it never recovered. At least that's the case with my Fedora 9 using
Network Manager. All attempts fail until at some stage there's a
network restart while sendmail is running.

No amount of fiddling with the sendmail configuration aided me.

--
[tim@localhost ~]$ uname -r
2.6.25.9-76.fc9.i686

Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-10-2008, 02:34 AM
Tim
 
Default sendmail

On Wed, 2008-07-09 at 15:42 -0700, Antonio Olivares wrote:
> I start a connection with wvdial and then I end the session with CTRL+C.

If I recall correctly, I used to use ifup ppp and ifdown ppp, back when
I was using dialup many years ago.

Did you read my earlier post about pre and post scripts for ppp
networking? Rather than the network manager dispatcher scripts being
used, seeing as you don't use it to bring ppp up and down, use those
post scripts to restart services as needed.

--
[tim@localhost ~]$ uname -r
2.6.25.9-76.fc9.i686

Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 07-10-2008, 04:54 AM
Antonio Olivares
 
Default sendmail

--- On Wed, 7/9/08, Tim <ignored_mailbox@yahoo.com.au> wrote:

> From: Tim <ignored_mailbox@yahoo.com.au>
> Subject: Re: sendmail
> To: olivares14031@yahoo.com, "For users of Fedora" <fedora-list@redhat.com>
> Date: Wednesday, July 9, 2008, 7:34 PM
> On Wed, 2008-07-09 at 15:42 -0700, Antonio Olivares wrote:
> > I start a connection with wvdial and then I end the
> session with CTRL+C.
>
> If I recall correctly, I used to use ifup ppp and ifdown
> ppp, back when
> I was using dialup many years ago.
>
> Did you read my earlier post about pre and post scripts for
> ppp
> networking? Rather than the network manager dispatcher
> scripts being
> used, seeing as you don't use it to bring ppp up and
> down, use those
> post scripts to restart services as needed.
Yes, I will give it a try. Instead of NetWorkManager, I should use if ppp up or ppp down. But in the meantime, I have successfully updated the Linux Counter page for the machine that refused to send the mail to Linux Counter. I used Yahoo/Google mail to update the machine.

Regards,

Antonio
>
> --
> [tim@localhost ~]$ uname -r
> 2.6.25.9-76.fc9.i686
>
> Don't send private replies to my address, the mailbox
> is ignored. I
> read messages from the public lists.




--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 09-03-2008, 02:11 PM
"Joy Methew"
 
Default sendmail

here is two systems both are "mta" A and B with sendmail.
A is mine and B is gmail mat.
when i telnet my mta means A --->>telnet 127.0.0.1 25
helo hi
mail from:root@yahoo.com <from%3Aroot@yahoo.com>
rcpt to:ml4joy@gmail.com <to%3Aml4joy@gmail.com>
i recived mail very easly.
it means my mta "A" telnet indirectaly to gmail mta.
but when i try to telnet directly to gmail mta its give error like.


220 mx.google.com ESMTP t26si1434066ele.4
helo gmail.com
250 mx.google.com at your service
mail from:ml4joy@gmail.com <from%3Aml4joy@gmail.com>
555 5.5.2 Syntax error t26si1434066ele.4

Any idea why the "Syntax error".?

Thanks
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 09-03-2008, 02:44 PM
"Marti, Rob"
 
Default sendmail

You're connecting from somewhere other than gmail.com and saying the mail is coming from gmail.com. You're trying to relay mail without authenticating, which I would bet google has disabled. Your MTA A is currently set up as an open relay (unless you're at gmail.com). Read
http://en.wikipedia.org/wiki/Open_mail_relay to see why this is bad.

Rob Marti

-----Original Message-----
From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@redhat.com] On Behalf Of Joy Methew
Sent: Wednesday, September 03, 2008 9:11 AM
To: General Red Hat Linux discussion list
Subject: sendmail

here is two systems both are "mta" A and B with sendmail.
A is mine and B is gmail mat.
when i telnet my mta means A --->>telnet 127.0.0.1 25
helo hi
mail from:root@yahoo.com <from%3Aroot@yahoo.com>
rcpt to:ml4joy@gmail.com <to%3Aml4joy@gmail.com>
i recived mail very easly.
it means my mta "A" telnet indirectaly to gmail mta.
but when i try to telnet directly to gmail mta its give error like.


220 mx.google.com ESMTP t26si1434066ele.4
helo gmail.com
250 mx.google.com at your service
mail from:ml4joy@gmail.com <from%3Aml4joy@gmail.com>
555 5.5.2 Syntax error t26si1434066ele.4

Any idea why the "Syntax error".?

Thanks
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 09-03-2008, 02:46 PM
Barry Brimer
 
Default sendmail

Quoting Joy Methew <ml4joy@gmail.com>:

> here is two systems both are "mta" A and B with sendmail.
> A is mine and B is gmail mat.
> when i telnet my mta means A --->>telnet 127.0.0.1 25
> helo hi
> mail from:root@yahoo.com <from%3Aroot@yahoo.com>
> rcpt to:ml4joy@gmail.com <to%3Aml4joy@gmail.com>
> i recived mail very easly.
> it means my mta "A" telnet indirectaly to gmail mta.
> but when i try to telnet directly to gmail mta its give error like.
>
>
> 220 mx.google.com ESMTP t26si1434066ele.4
> helo gmail.com
> 250 mx.google.com at your service
> mail from:ml4joy@gmail.com <from%3Aml4joy@gmail.com>
> 555 5.5.2 Syntax error t26si1434066ele.4
>
> Any idea why the "Syntax error".?

Mail servers that are run by knowledgeable people are very picky about SMTP
conversations. The first problem is that you helo'd with gmail.com .. Google
knows which servers are gmail.com servers and which are not .. and you're not.
I also expect that their mail servers are all using ehlo and not helo. I doubt
that was the issue. The syntax error was most likely your "mail from" line. I
believe the correct syntax would have been "mail from: <ml4joy@gmail.com>".
Your sendmail server most likely does not have any such restrictions in place,
and as such was willing to accept the less than standard syntax for the "mail
from" statement. Your sendmail server does know how to form a proper SMTP
conversation, which is why your sendmail server had no issue talking to the
gmail servers.

Barry

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 09-03-2008, 02:47 PM
Barry Brimer
 
Default sendmail

He telnetted to 127.0.0.1 25 .. which does not make him an open relay.

Quoting "Marti, Rob" <RJM002@shsu.edu>:

> You're connecting from somewhere other than gmail.com and saying the mail is
> coming from gmail.com. You're trying to relay mail without authenticating,
> which I would bet google has disabled. Your MTA A is currently set up as an
> open relay (unless you're at gmail.com). Read
> http://en.wikipedia.org/wiki/Open_mail_relay to see why this is bad.
>
> Rob Marti
>
> -----Original Message-----
> From: redhat-list-bounces@redhat.com [mailto:redhat-list-bounces@redhat.com]
> On Behalf Of Joy Methew
> Sent: Wednesday, September 03, 2008 9:11 AM
> To: General Red Hat Linux discussion list
> Subject: sendmail
>
> here is two systems both are "mta" A and B with sendmail.
> A is mine and B is gmail mat.
> when i telnet my mta means A --->>telnet 127.0.0.1 25
> helo hi
> mail from:root@yahoo.com <from%3Aroot@yahoo.com>
> rcpt to:ml4joy@gmail.com <to%3Aml4joy@gmail.com>
> i recived mail very easly.
> it means my mta "A" telnet indirectaly to gmail mta.
> but when i try to telnet directly to gmail mta its give error like.
>
>
> 220 mx.google.com ESMTP t26si1434066ele.4
> helo gmail.com
> 250 mx.google.com at your service
> mail from:ml4joy@gmail.com <from%3Aml4joy@gmail.com>
> 555 5.5.2 Syntax error t26si1434066ele.4
>
> Any idea why the "Syntax error".?
>
> Thanks
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
> !DSPAM:48bea336323471050151401!
>
>



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 04:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org