LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-10-2006, 09:58 AM   #1
janap-146
Member
 
Registered: Mar 2005
Location: UK
Distribution: Ubuntu, Slackware
Posts: 49

Rep: Reputation: 15
Sendmail Advice


Hi,

Is it possible to have Sendmail on my Linux (Slackware) Machine to be configured so that I can connect to it from a Windows XP machine and send emails through my ISP Mailserver?

Would this be easy to configure, and does anybody have any hints on how I should do it?

The reason I want to do this is because I am writing an email encryption program for Windows and need to keep sending emails all the time for testing. Using Sendmail to connect to would give me the chance to test various functions without actually having connected to my ISP Mailserver, until the mail is actually sent.

I hope someone can give some advice on how to do this. I use Linux on and off and got quite into it at one time, I have tried configuring Sendmail but I always get something like 'Invalid Domain' or that it's rejected.

Many thanks

janap-146
 
Old 12-10-2006, 12:34 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah that's totally possible. you need to tell sendmail to use your ISP as a "smart relay":

define(`SMART_HOST', `mail.myisp.com')dnl

in your sendmail.mc file.
 
Old 12-10-2006, 02:07 PM   #3
janap-146
Member
 
Registered: Mar 2005
Location: UK
Distribution: Ubuntu, Slackware
Posts: 49

Original Poster
Rep: Reputation: 15
Hi,

Thank you very much for replying.

I couldn't find a file called >> sendmail.mc but I found one with the Extension .cf

I have just Downloaded and Installed Webmin and tried configuring Sendmail through it. I have addded my isp SMTP Host to Relay Domains. Would this be the right thing to do?

I am by no means a Professional or Expert Programmer, I just learn as I go along so please forgive me if I ask this Question.

Say if I wanted to connect to Sendmail via Outlook Express in Windows, what would the Sendmail SMTP Address be? The Username? The Password?

I need to have my Program connect to Sendmail so I can test and experiment with some codes. I want Sendmail to connect to the isp mailserver to send my test emails.

Thank you again for replying

janap-146
 
Old 12-10-2006, 02:44 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the cf is the big nasty scary config file. the mc is a configuration file used to create the big scary configuration file (sendmail is HARD to configure totally manually).

what you didn't wouldn't be the right thing, no. that presumably measn that mail for bob@mail.myisp.com would be allowed to pass through, which is not what you want. instead you want to say that any mail you wish to send should be given to mail.miyisp.com and they will sort the rest out. search again for a reference to a smart host or a smart relay.

as for using the sendmail server, the ip would be 127.0.0.1 on your local machine, and there is no username or password at all.
 
Old 12-10-2006, 03:32 PM   #5
janap-146
Member
 
Registered: Mar 2005
Location: UK
Distribution: Ubuntu, Slackware
Posts: 49

Original Poster
Rep: Reputation: 15
I have removed the change I made in Webmin

I cannot find sendmail.mc anywhere

I have just added what you suggest to the sendmail.cf file which is in /etc/mail so it now looks exactly like this:

# "smart" relay host (may be null)
define('SMART_HOST', 'mailserver.com')dnl

I have tried to send an email through my test program in Windows using the routers ip, like 192.168.0.3 the Username and password I have Blank but I always get Socket Error # 10060

Do you have any ideas what else I should do?

Many thanks

janap-146
 
Old 12-10-2006, 03:51 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well if you put that line in your sendmail.cf you'll bust it completely and it'll be no use to man nor dog. apparently there's an option that says "Send outgoing mail via host" under webmin, change that.
 
  


Reply



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
Sendmail config questions + Sendmail not reflecting changes to access db wbuik Linux - Networking 2 03-26-2009 05:02 AM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
Need Advice; 3 NIC's; High Volume Mail Server; Sendmail; Iptables? Killer Bassist Linux - Networking 3 12-04-2005 11:40 PM
Sendmail configuration with DynDns... need advice verbal Linux - Software 4 04-16-2004 06:11 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:09 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
Open Source Consulting | Domain Registration