LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-02-2005, 03:42 PM   #1
littlenicker
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Rep: Reputation: 0
Sendmail Remote Emailer


How do I set up sendmail to send emails from a remote site?

For example:
I have my personal PC using outlook express. I recieve emails from my isp, and currently send them via my isp's smtp server. However, I would like to send emails from my local server instead of my isps server. When I set my server up (blahblah.yi.org) as my outgoing mail server, it gives this error when I try to send an email:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'test@somedomain.com'. Subject 'test', Account: 'test', Server: 'blahblah.yi.org', Protocol: SMTP, Server Response: '550 5.7.1 <test@somedomain.com>... Relaying denied. IP name lookup failed [192.168.1.13]', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79

Where 192.168.1.13 is my computers ip on my local network. My server is running slackware 8.1 and sendmail is running. This is the startup for my servers sendmail:

/usr/sbin/sendmail -bd -q15m


If anyone wonders, my ISP has a very small cap on the size of attatchment I can send via their server and I have to send larger files. I'm sure others would like to do this same thing. So, anyone have any ideas on how to fix this?

Any help would be greatly appreciated!
 
Old 05-02-2005, 04:20 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
The solution to your file can be found in /etc/mail/access...

Code:
root@alice:/etc/mail# cat access
192.168.x.1    OK
192.168.x      RELAY
root@alice:/etc/mail#
OK means accept connections but no relay. 192.168.x.1 is my firewall, and I'm forwarding port 25 to the mail server to allow inbound mail. The rest of it is my internal network, which allows relay.

After you've created/edited this file, run "make", and restart the server.


HTH
 
Old 05-03-2005, 09:44 AM   #3
littlenicker
LQ Newbie
 
Registered: Apr 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply. I found that would work great with Slackware 9+ but not 8.1-. However, i did find an answer to my question. Here it is for anyone who has this same question...

solution for slackware 8.1-:

create a file called "relay-domains" in "/etc/mail" and simply add the IP Addresses or subnets you wish to allow email relaying from. this is what my file has in it:

root@Goliath:/etc/mail# cat relay-domains
192.168.1
root@Goliath:/etc/mail#

Last edited by littlenicker; 05-03-2005 at 09:46 AM.
 
Old 05-03-2005, 11:36 AM   #4
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
That's more of a Sendmail version thing than a Slackware version thing. You should really consider updating to a more recent version of Sendmail.

Glad it's working, though.
 
  


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
Command line emailer sendas4 Linux - Software 3 07-03-2005 09:54 PM
Sendmail & remote e-mail WorldBuilder Linux - Networking 4 08-29-2004 09:18 PM
File or direcroty watcher and emailer enkrypter Linux - Software 1 04-15-2004 07:08 AM
Sendmail: Deliver locally and remote mague Linux - Software 1 11-04-2003 06:08 PM
ISS Discovers A Remote Hole In Sendmail MikeeX Linux - Security 0 03-03-2003 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:46 AM.

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