LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   sending/recieving emails with sendmail (http://www.linuxquestions.org/questions/slackware-14/sending-recieving-emails-with-sendmail-150449/)

xushi 02-25-2004 03:22 PM

sending/recieving emails with sendmail
 
Lo all,

I'm using sendmail 8.12.11 in slackware 9.1, didnt really configure anything, just using it out of the box.. It turns out i couldnt send outgoing mail because i had the wrong DNS settings, but now this is fixed.

However, when i reply from hotmial or yahoo to my mail server, i keep getting this error, (when i reply to root@xushi.co.uk, or root@my_ip_address)

------------------------------------------------------------
Message from yahoo.com.
Unable to deliver message to the following address(es).

<root@212.158.224.166>:
212.158.224.166 does not like recipient.
Remote host said: 550 5.7.1 <root@212.158.224.166>... Relaying denied
Giving up on 212.158.224.166.

--- Original message follows.

Return-Path: <sgreadly@yahoo.com>
Message-ID: <20040225205541.3130.qmail@web13503.mail.yahoo.com>
Received: from [212.158.224.166] by web13503.mail.yahoo.com via HTTP;
Wed, 25 Feb 2004 20:55:41 GMT
Date: Wed, 25 Feb 2004 20:55:41 +0000 (GMT)
From: =?iso-8859-1?q?Samir=20Greadly?= <sgreadly@yahoo.com>
Subject: sent ti ip
To: root@212.158.224.166
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

testing testing
------------------------------------------------------------------

I'm not sure if i have to tweak any configuration, i sure wouldn't mind any help on this..

p.s., i'm running behind a router, but have forwarded ports 25, 110, 143

Thanks

tharris 02-25-2004 04:15 PM

what i did was create an account at either
http://no-ip.com

or

http://www.dyndns.org

once you have done that, download and install the appropriate dns updating program. once you have a domin pointing to your dynamic ip, you can then use an email addy suchas user@dyndns.org or use one of the many free domains they have available.

One you have done that, create a file on your server called relay-domains and place it in your /etc/mail dir. Sendmail will check this file to see which domains it will allow relaying to. ifyou have a static IP address, i guss you could place that ip address in the /etc/mail/local-host-name folder and that may work.

Once you have done that do an /etc/rc.d/rc.sendmail restart and that should allow you to receive your mail.

linuxpackages.net hosts a "quick and dirty" sendmail at: http://www.linuxpackages.net/howto.p...Sendmail+Howto

xushi 02-25-2004 04:44 PM

Oh my days, it worked.

Thank you for that. I don't know how many more months it would take me just to get through that ;) j/k

I forgot to add i already have an account with zoneedit.com (xushi.co.uk) .co.uk domains for 2 pounds a year or something..

Thanks.


All times are GMT -5. The time now is 05:10 PM.