LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-19-2003, 04:41 AM   #1
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Rep: Reputation: 30
Talking Using sendmail to relay mail to ISP mail server


What's up,everyone! By the way,I have a thorny question (to me) regarding Sendmail relay.

I am using Sendmail as my MTA.However,my ISP blocks port 25.As a result,I cannot use my computer as a mail server.So,I intended to relay my mail to ISP mail server.The problem is that I don't know how to configure this complicated mail server.Would anyone give me some clue?

I am appreciative if anyone gives me suggestion.
 
Old 08-19-2003, 09:10 AM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Read the documentation, or google for masquerade and masquerade_all in your sendmail.mc file. That should get you started.

Cheers--
Charles
 
Old 08-19-2003, 10:24 AM   #3
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Look for the DS tag in your /etc/mail/sendmail.cf and edit it to

DSrelay.server.name
 
Old 08-19-2003, 11:28 AM   #4
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Unhappy Yeah,DS server name,I have.But....

Thanks for you guys input.I have added DS mail.myisp.com to the sendmail.cf.However,the mail seems like fail to send out.

I have got the error message as follows:

Aug 19 23:17:03 192 sendmail[1534]: h7JFH3RH001534: to=myemail@hotmail.com
m, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30083,
relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]


Do you guys have similar experiences?If so,please help me....
I am totally a on Sendmail.
 
Old 08-19-2003, 02:17 PM   #5
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Look through your sendmail.mc file and comment out the line it tells you to. Currently, sendmail is trying to contact localhost, but sendmail ain't root, so it fails. I am not at my box so I can't be more explicit than that. You can google for the problem, too. Loads o' folk have had the same problem.

HTH

Cheers--
Charles
 
Old 08-20-2003, 02:47 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
There shouldn't be any space between DS and the relayserver name

DSmail.myisp.com.

Hope mail.myisp.com is resolvable.
 
Old 08-20-2003, 11:58 AM   #7
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Unhappy The same problem (Connection refused...)

Hello,everyone. My old problem exists....

After I modified the sendmail.cf file to DSmail.myisp.com,the problem is still existing.It really drives me crazy.
The problem is that I don't know the real reason why it refused to send out...

I hope you guys would like to give me some clue if you experienced this before.
 
Old 08-20-2003, 12:10 PM   #8
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Hmmm. Do you have a sendmail.mc file?

Cheers--
Charles
 
Old 08-21-2003, 05:19 AM   #9
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
check /etc/mail/access and /etc/mail/relay-domains

Another pointer is tcpwrappers (hosts.allow & hosts.deny files)
 
Old 08-21-2003, 01:09 PM   #10
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Angry Problem persists...............

By the way,thanks for you guys helping me out many times.

My sendmail still cannot help me to relay all the outgoing mail to my ISP mail server.The error message is the same as my previous post.I have modifiedhosts.allow,hosts.deny but it makes no changes to my problem.And cnjohnson,I have sendmail.mc before,I converted to sendmail.cf,however.It's all good before for my Internal LAN.If it comes to relay mail to my ISP mail server,I've got this problem.

By the way,my ISP blocks port 25,will this limitation make me can't send mail to my ISP mail server?

Thanksssssssss a lot.
 
Old 08-21-2003, 01:09 PM   #11
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Angry Problem persists...............

Oops, double posts.Sorry.

Last edited by Swift&Smart; 08-21-2003 at 01:12 PM.
 
Old 08-22-2003, 12:13 AM   #12
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Unhappy Would somebody help?

Hello,everyone. It's me again.

Would somebody help me solve this problem?I'm little bit in a hurry about this.Thanks.

I'm totally a and dummies on Sendmail.
 
Old 08-22-2003, 02:54 AM   #13
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Can you share the contents of /var/log/maillog. That would give us all a few required hints.

Are you able to send mails using a mail client? OR do you have to use a webmail client to send and receive mails?

If you are able to send mails, your ISP allows port 25 access to its mail servers.
Unless it has some rules set to accept mails only from mail clients but not mailservers... <thinking loud>

Last edited by ppuru; 08-22-2003 at 03:09 AM.
 
Old 08-22-2003, 06:34 AM   #14
schliebitz
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: Slackware 9.0, SuSE 8.2
Posts: 2

Rep: Reputation: 0
Similar sendmail problem

Hello everybody,

I'm not sure whether my problem is really similar to the one discussed here, but I think I may ask:

I have a very small LAN of windows clients connected to a linux server (ip-masquerading for phone line internet access). i want all outgoing mail to be stored on the server, until it is sent alltogether. so the mail clients (say ...

one.gallactica

...) connect via smtp to my sendmail demon on my host, say:

battlestar.gallactica

from there e-mails should be "relayed" (right term?) to my isp's sendmail system, say

mx.freenet.de

but as far as i got the picture, as one != localhost, sendmail denied relaying of my mail so as to tease spammers. All right, i don't want to support spamming at all, but couldn't localhost just accept mails from one.gallactica, two.gallactica, ..., because their ip-addresses are static.

would it be wise to set up such a configuration, and, assuming it is, how could i do it with webmin (or by hand).

thanx in advance,

tobias schliebitz
 
Old 08-22-2003, 08:30 AM   #15
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Re: Would somebody help?

Quote:
Originally posted by Swift&Smart
Hello,everyone. It's me again.

Would somebody help me solve this problem?I'm little bit in a hurry about this.Thanks.

I'm totally a and dummies on Sendmail.
Would you please be kind enough to post the contents of your sendmail.mc file?

Thanks.

Cheers--
Charles
 
  


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
Using Sendmail to relay all mail to my Exchange Server TimothyBoggess Linux - Newbie 7 05-01-2007 04:32 AM
how to send all mail through isp server with sendmail or? dlm4444 Linux - Wireless Networking 1 07-06-2005 05:07 PM
Mail Relay Server by using Sendmail raymond117 Linux - Security 2 05-11-2005 11:25 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 05:54 PM
Sendmail relay mail problem Swift&Smart Linux - Software 15 10-30-2003 10:14 PM


All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
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