LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using sendmail to relay mail to ISP mail server (https://www.linuxquestions.org/questions/linux-software-2/using-sendmail-to-relay-mail-to-isp-mail-server-83420/)

Swift&Smart 08-19-2003 03:41 AM

Using sendmail to relay mail to ISP mail server
 
What's up,everyone!:D 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.:)

cnjohnson 08-19-2003 08:10 AM

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

Cheers--
Charles

ppuru 08-19-2003 09:24 AM

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

DSrelay.server.name

Swift&Smart 08-19-2003 10:28 AM

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 :newbie: on Sendmail.
:)

cnjohnson 08-19-2003 01:17 PM

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

ppuru 08-20-2003 01:47 AM

There shouldn't be any space between DS and the relayserver name

DSmail.myisp.com.

Hope mail.myisp.com is resolvable.

Swift&Smart 08-20-2003 10:58 AM

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.:mad:
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. :p

cnjohnson 08-20-2003 11:10 AM

Hmmm. Do you have a sendmail.mc file?

Cheers--
Charles

ppuru 08-21-2003 04:19 AM

check /etc/mail/access and /etc/mail/relay-domains

Another pointer is tcpwrappers (hosts.allow & hosts.deny files)

Swift&Smart 08-21-2003 12:09 PM

Problem persists...............
 
By the way,thanks for you guys helping me out many times.:D

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.;)

Swift&Smart 08-21-2003 12:09 PM

Problem persists...............
 
Oops,:eek: double posts.Sorry.:p

Swift&Smart 08-21-2003 11:13 PM

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 :newbie: and dummies on Sendmail.:p

ppuru 08-22-2003 01:54 AM

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>

schliebitz 08-22-2003 05:34 AM

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

cnjohnson 08-22-2003 07:30 AM

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 :newbie: and dummies on Sendmail.:p

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 07:40 AM.