Linux Debian support - Email Send Problems

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > June 2007 > Email Send Problems





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Email Send Problems
Tim Johnson

2007-05-31, 1:12 pm

I'm using kubuntu 7.04 (feisty fawn, amd 64)
I *am* able to send and receive email without problem using kmail.
However, I am *not* able to send mail from program scripts.
Example: Using Python smtplib, I get a "Connection unexpectedly closed"
error
Using rebol sendmail function, I get Access Error: Cannot connect to
<mailserver>

Using the same code, I can send mail without any problem from my slackware
machine, which is behind the same router and on the same network.

This suggests to me that there is some sort of firewall on this ubuntu
machine, which is being "avoided" by kmail, but not by the scripting
languages.

Any ideas?
Thanks
Tim
sk8r-365

2007-05-31, 7:13 pm

Tim Johnson said:
> I'm using kubuntu 7.04 (feisty fawn, amd 64)
> I *am* able to send and receive email without problem using kmail.
> However, I am *not* able to send mail from program scripts.
> Example: Using Python smtplib, I get a "Connection unexpectedly closed"
> error
> Using rebol sendmail function, I get Access Error: Cannot connect to
> <mailserver>
>
> Using the same code, I can send mail without any problem from my slackware
> machine, which is behind the same router and on the same network.
>
> This suggests to me that there is some sort of firewall on this ubuntu
> machine, which is being "avoided" by kmail, but not by the scripting
> languages.
>
> Any ideas?


Here's a WAG for ya - I'm not on Ubuntu - but what of
the file /etc/email-addresses?
Or "dpkg-reconfigure exim4" to create and edit (exim4)?

--
sk8r-365

http://goodbye-microsoft.com/
Tim Johnson

2007-05-31, 7:13 pm

sk8r-365 wrote:
> Here's a WAG for ya - I'm not on Ubuntu - but what of
> the file /etc/email-addresses?

No file of that name.
Suggestions?

> Or "dpkg-reconfigure exim4" to create and edit (exim4)?

exim4 is not installed.
Am I correct that exim4 is the "new sendmail"?
If so, I should be able my ISP smtp server, just as I
do with kmail. In fact, I can do so from my slack machine.
But I would be happy to install exim4 if you so recommend.
thanks
tim



sk8r-365

2007-05-31, 7:13 pm

Tim Johnson said:
> sk8r-365 wrote:
> No file of that name.
> Suggestions?


Sorry, no suggestions - it was WAG.

>
> exim4 is not installed.
> Am I correct that exim4 is the "new sendmail"?


As I understand - it is. And I think this is the first use of it
within Debian ... is that right guys?

> If so, I should be able my ISP smtp server, just as I
> do with kmail. In fact, I can do so from my slack machine.
> But I would be happy to install exim4 if you so recommend.
>


Let's wait to install it and see if using the current arrangement
suits; if that's OK with you.
I am only just now learning about exim4 having come from procmail,
mailx and the like. What servers are you currently using?
I am familiar with the other methods having come from Gentoo and Ubuntu.

--
sk8r-365

http://goodbye-microsoft.com/
Anton Ertl

2007-05-31, 7:13 pm

Tim Johnson <tim@johnsons-web.com> writes:
> Am I correct that exim4 is the "new sendmail"?


exim4 is Debian's default MTA (how come it is not installed in your
installation?), so it has the role that sendmail has had in many other
systems. However, sendmail still exists; but if you don't have a
special reason to use sendmail (e.g., an existing configuration),
exim4 is preferable.

- anton
--
M. Anton Ertl Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html
Tim Johnson

2007-05-31, 7:13 pm

sk8r-365 wrote:

>
> Let's wait to install it and see if using the current arrangement
> suits; if that's OK with you.
> I am only just now learning about exim4 having come from procmail,
> mailx and the like. What servers are you currently using?
> I am familiar with the other methods having come from Gentoo and Ubuntu.

I installed exim4 and ran sudo dpkg-reconfigure exim4-config
really, really slick. I choose to use a smarthost, since my domain
hosting who is like a whole continent away - allows that with a static IP.
The Python script works fine, I can send without problem and receive
almost instantly.
The rebol script still fails. I think that is an interpreter problem,
i.e. a problem with the particular rebol config on this machine.
Thanks for the tip.
that did it.
tim

Tim Johnson

2007-05-31, 7:13 pm

Anton Ertl wrote:

> Tim Johnson <tim@johnsons-web.com> writes:
>
> exim4 is Debian's default MTA (how come it is not installed in your
> installation?),

Good for Debian. :-) I'm using ubuntu. Deb was my first choice, but
couldn't get it to work. Unresolvable network timeout.
thanks
tim

Tim Johnson

2007-05-31, 7:13 pm

Tim Johnson wrote:

> The rebol script still fails. I think that is an interpreter problem,
> i.e. a problem with the particular rebol config on this machine.

Well - now I have the rebol script working *if* I using the server IP
Address. Go figure.
tim

s. keeling

2007-06-01, 1:13 pm

sk8r-365 <sk8r-365@sk8r.debian.etch.invalid.org>:
> Tim Johnson said:
>
> Sorry, no suggestions - it was WAG.


fyi, that file is specific to exim. Postfix uses /etc/aliases, as (I
believe?) Sendmail does.

>
> As I understand - it is. And I think this is the first use of it
> within Debian ... is that right guys?


Nope. I had exim on Woody. Nowadays, Debian's default MTA is Postfix.

>
> Let's wait to install it and see if using the current arrangement
> suits; if that's OK with you.
> I am only just now learning about exim4 having come from procmail,
> mailx and the like. What servers are you currently using?
> I am familiar with the other methods having come from Gentoo and Ubuntu.


For the OP, if you only need to send mail out to your ISP's Smarthost,
I'd recommend the much lighter SMTP emulators, such as ssmtp. I do
this:

incoming:

ISP --> fetchmail --> procmail --> MUA (mutt).

outgoing:

mutt --> ssmtp --> ISP

There's also esmtp, which is a userland configurable ssmtp,
but I couldn't get it to play nicely with fetchmail and procmail.
Configured one way, it could send but not receive. Another way, it
could receive but not send. This was working from the supplied
/usr/share/doc/esmtp stuff and google groups mining.

ssmtp was a snap.

For the really lazy/technically challenged, there's always the GUIs
(ie. tbird) which have their own SMTP engine built-in. No MTA
required.

Have fun. :-)


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Spammers! http://www.spots.ab.ca/~keeling/emails.html
s. keeling

2007-06-01, 1:13 pm

Anton Ertl <anton@mips.complang.tuwien.ac.at>:
>
> exim4 is Debian's default MTA (how come it is not installed in your


s/exim4/postfix/

> exim4 is preferable.


Depends what you're using it for. I'd believe the DDs when they
suggest postfix (industrial strength MTA), but I found exim more easily
configurable for what I use it for (personal workstation --> ISP's
Smarthost).

Now, however, I've gone to ssmtp, which is a lot easier than both of
them, but which would be entirely unsuitable for an industrial
strength MTA.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Spammers! http://www.spots.ab.ca/~keeling/emails.html
Anton Ertl

2007-06-01, 1:13 pm

"s. keeling" <keeling@spots.ab.ca> writes:
>Anton Ertl <anton@mips.complang.tuwien.ac.at>:
>
>s/exim4/postfix/


What Debian are you thinking of? We have a bunch of Etch and Sarge
boxes, and my impression from the installation is that Exim4 is the
default.

- anton
--
M. Anton Ertl Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html
sk8r-365

2007-06-01, 7:12 pm

s. keeling said:
> sk8r-365 <sk8r-365@sk8r.debian.etch.invalid.org>:

<snip>
>
> Nope. I had exim on Woody. Nowadays, Debian's default MTA is Postfix.
>


I put Etch on via net install and exim4 was installed by default, yet
there are no listings for postfix as being installed.

--
sk8r-365

http://goodbye-microsoft.com/
s. keeling

2007-06-01, 7:12 pm

sk8r-365 <sk8r-365@sk8r.debian.etch.invalid.org>:
> s. keeling said:
> <snip>
>
> I put Etch on via net install and exim4 was installed by default, yet
> there are no listings for postfix as being installed.


Hmm ... Maybe this is a testing (lenny) and Sid (lenny+1) thing,
while exim4 is still in stable (etch). I'm running Grml (a Sid
downstream) and it gave me Postfix.

It doesn't really matter. Installing whatever you prefer carefully
removes whatever's there (except for the config files :-) before
starting up whatever's is your preference.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Spammers! http://www.spots.ab.ca/~keeling/emails.html
s. keeling

2007-06-01, 7:12 pm

Anton Ertl <anton@mips.complang.tuwien.ac.at>:
> "s. keeling" <keeling@spots.ab.ca> writes:
>
> What Debian are you thinking of? We have a bunch of Etch and Sarge
> boxes, and my impression from the installation is that Exim4 is the


Yeeeaahh, I might have overstepped into testing/unstable land. I
believe they've gone to Postfix for the default.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Spammers! http://www.spots.ab.ca/~keeling/emails.html
Dan N

2007-06-05, 1:13 am

On Thu, 31 May 2007 07:37:43 -0800, Tim Johnson wrote:

> Using the same code, I can send mail without any problem from my slackware
> machine, which is behind the same router and on the same network.


How are you addressing your mail server, by name or by ip address? Could
your problem have something to do with dns?

Dan
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com