LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-29-2005, 01:51 PM   #1
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Rep: Reputation: 15
sending emails from Kmail - relay access denied


I have a USB modem linked directly to ADSL - no network.
I can surf internet OK so no problem with connection but I cannot send emails to anyone apart from myself. Can receive from outside fine.
When I send mail from Kmail to an address such as jdoe@anotherserver.com I get message back "Relay access denied"
I have looked at a great many threads and have seen mention of /etc/resolve.conf.
I have a dual boot system with Win XP and it works OK with my ISP - how do I get my ISP - wanadoo.fr - to allow me to send emails outside of my domain using Linux ?
It must be something simple but no body on the KDE forum can help.
I am running Mandrake 10.1 and Kernel 2.6.8.1-12mdk with KDE 3.2
Pleeeeeeeeeeeeeese help, have little hair anyway !
 
Old 05-29-2005, 02:52 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Presumably you've already checked this, but the common reason for the "relay access denied" error, is having the incorrect smtp (etc.) set in your mail program. Most of all, check that it's the one for your current ISP, not, as is often the case, your previous ISP.

Cheers,

mj
 
Old 05-30-2005, 02:56 AM   #3
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Original Poster
Rep: Reputation: 15
There is only one ISP set up and it is correct
 
Old 05-30-2005, 06:39 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
When I send mail from Kmail to an address such as jdoe@anotherserver.com I get message back "Relay access denied"

Which MTA is reporting relay denied? Your ISP's -or- is kmail possibly configured to hand the e-mail off to the MTA running on your local system? The DSN (bounce) should state the "reprting MTA".

Also, this could be related to how kmail is announcing itself to the remote MTA. i.e. HELO or reply-to address. Running ethereal prior to selecting the send button should point out where/why the remote MTA is bouncing your e-mail. BTW: Ethereal also runs under windows, so you should be able to compare the two captures and see what kmail is doing different than Outlook Express or whatever MUA you are using under windows.
 
Old 05-30-2005, 09:38 AM   #5
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Original Poster
Rep: Reputation: 15
I dont know what an MTA stands for so I cant answer your question - I am a no brain OK!
I have found my resolv.conf file in etc/ppp/ instead of etc/ Is this a problem or not ?
My resolv.conf file has the following
nameserver 80.10.246.130
nameserver 80.10.246.3

Neither of these numbers relate to my ISP
The DNS supplied by my ISP are
80.10.246.2
80.10.246.129

Is this because the Linux system was installed by another person with his own DNS and the set up in Kmail has not overwritten this file ?

Should I edit the resolv.conf file to reflect my ISP numbers ?
How do I do this as root? What command for edit and save ?

Remember please I am a real newby and can follow simple monosyllabic instructions with no "geek" speak !

Thanks in advance for any help
 
Old 05-30-2005, 10:47 AM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
MTA = mail transport agent -or- message transfer agent

Applications like kmail, outlook express, etc... are configured to connect to MTA's (typically ISP's outbound mail server) for delivery of e-mail when you select the "send" button. Also, it's the MTA that issues the "relay denied" based on how its configured. Typically, ISP's configure their outbound MTA to only accept connections (relay) from customers on their network. But they can also reject the connection if the sending application (like kmail) announces its FQDN (fully qualified domain name) incorrectly (like hostname.mydomain.com instead of hostname.myisp.com).

On the other side of the coin - the file resolv.conf, configures your systems resolver libraries. Resolver libs are used by your system for name lookups (like www.yahoo.com). If your systems resovler libs were incorrect, then you should see an error like "hostname not found" for ANY application trying to access the internet, NOT just kmail. So if you are not getting "hostname not found" type of errors when you use a program like a web browser, then I would think your resolv.conf file is configured to use the proper name servers.

A couple of things to check:

1) Is kmail configured to use the proper outbound mail server (MTA)? like: mail.myisp.net
2) Can the FQDN of your outbound mail server (mail.myisp.net) be looked up using DNS. i.e. nslookup mail.myisp.net This would verify your resolv.conf file is properly configured.
3) Is there a firewall possibly blocking access to your outbound mail server?
 
Old 05-30-2005, 11:04 AM   #7
solar1951
Member
 
Registered: May 2005
Location: France
Distribution: Ubuntu Feisty and Mint Cassandra
Posts: 86

Original Poster
Rep: Reputation: 15
Problem solved.

Thanks so much for the information in the last post - I learn more every day !

The problem was within Mandrake control centre/internet access. Within that tab was DNS Server options which didn't correspond to my ISP. After clearing the boxes I could send mail fine, so my server was confused about who I was - so am I sometimes ! Found out the solution on a French forum - http://www.trustonme.net/ - which didn't come up on a google with "relay access denied" because it was under "relaying not allowed" !

Onward and upward - also got my printer working today so in a good mood !

Bye for now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Relay Access Denied dwpondscum Linux - Networking 2 09-20-2007 04:37 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
sendmail relay access denied techrolla Linux - Networking 5 06-11-2005 01:59 PM
I get relay access denied sometimes dussel Linux - General 1 12-16-2004 02:30 PM
postfix: Relay access denied SolidSnake Linux - Networking 4 02-20-2004 09:05 PM


All times are GMT -5. The time now is 10:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration