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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-19-2003, 03:41 AM
|
#1
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Rep:
|
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. 
|
|
|
08-19-2003, 08:10 AM
|
#2
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
Read the documentation, or google for masquerade and masquerade_all in your sendmail.mc file. That should get you started.
Cheers--
Charles
|
|
|
08-19-2003, 09:24 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
Look for the DS tag in your /etc/mail/sendmail.cf and edit it to
DSrelay.server.name
|
|
|
08-19-2003, 10:28 AM
|
#4
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
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.

|
|
|
08-19-2003, 01:17 PM
|
#5
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
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
|
|
|
08-20-2003, 01:47 AM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
There shouldn't be any space between DS and the relayserver name
DSmail.myisp.com.
Hope mail.myisp.com is resolvable.
|
|
|
08-20-2003, 10:58 AM
|
#7
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
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. 
|
|
|
08-20-2003, 11:10 AM
|
#8
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
Hmmm. Do you have a sendmail.mc file?
Cheers--
Charles
|
|
|
08-21-2003, 04:19 AM
|
#9
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
check /etc/mail/access and /etc/mail/relay-domains
Another pointer is tcpwrappers (hosts.allow & hosts.deny files)
|
|
|
08-21-2003, 12:09 PM
|
#10
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
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 modified hosts.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. 
|
|
|
08-21-2003, 12:09 PM
|
#11
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
Problem persists...............
Oops,  double posts.Sorry.
Last edited by Swift&Smart; 08-21-2003 at 12:12 PM.
|
|
|
08-21-2003, 11:13 PM
|
#12
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
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. 
|
|
|
08-22-2003, 01:54 AM
|
#13
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
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 02:09 AM.
|
|
|
08-22-2003, 05:34 AM
|
#14
|
LQ Newbie
Registered: Aug 2003
Location: Germany
Distribution: Slackware 9.0, SuSE 8.2
Posts: 2
Rep:
|
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
|
|
|
08-22-2003, 07:30 AM
|
#15
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
Re: Would somebody help?
Would you please be kind enough to post the contents of your sendmail.mc file?
Thanks.
Cheers--
Charles
|
|
|
All times are GMT -5. The time now is 11:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|