Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
03-03-2006, 04:07 PM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 21
Rep:
|
How to give sendmail the right preferences?!
Hi,
may be s.o in this forum has find a right configuration for sendmail, i'm able to send an e-mail local (on this computer), but no chance to bring it outside.
My place is behind a router and everything was initialized by "DHCP".
ISP, (my mail-server too) is written to '/.../.../cf/sendmail-slackware.mc', in that way:
'dnl# Uncomment the line below to send outgoing mail through an external
server:
define(`SMART_HOST',`mail.arcor.de')'
But the problem is that i don't know to give (my) this domain the right expression (name). Cause i haven't. So, if i try to send an e-mail to www, the same message returned:
'.. while talking to mx.arcor.de.:
>>> DATA
<<< 550 5.1.8 <thokra@nux2>: Sender address rejected: Domain not found
550 5.1.1 <my_name@arcor.de>... User unknown
<<< 554 5.5.1 Error: no valid recipients'
So "Domain not found" is the problem i think, cause ': sender <thokra@nux2>' is my local name.
All my searching in the internet has no success, the same with my experiences to set names like 'localhost, localdomain' to '/etc/mail/local-host-names'.
May be someone knows the right constellation with 'sendmail' and an 'dynamic IP-address' from an ISP.
user_tom
P.S i write this here because 'slackware-10.2' comes with 'sendmail'.
|
|
|
03-03-2006, 05:16 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
Ok I use sendmail and there seem to be 2 ways to configure it:
If you change any settings in sendmail.mc then use should compile those settings with a prog call m4. But I didn't do it that way.
What I found to work just as well is to change the settings in sendmail.cf instead.
If you open that file and search for '# "Smart" relay host (may be null)' on the line under it that begins with DS , change that to your isps smtp server. EG:
DS mail.arcor.de
This should work with most mail progs and I hope this is what you are looking for.
|
|
|
03-03-2006, 06:10 PM
|
#3
|
LQ Newbie
Registered: Feb 2006
Posts: 21
Original Poster
Rep:
|
... thank's for response;
so i see that it is right written to '/etc/mail/sendmail.cf';
but the problem is my name of localhost, cause nothing will be accepted outside the www.
This pc is named 'thokra@nux2' in local, 'thokra' is the username and 'nux2' the host.
And i don't know how to set the right domain.
cheers --tom
|
|
|
03-03-2006, 07:04 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
Can you print here the exact commands you are typing to sendmail please?
|
|
|
03-04-2006, 03:58 AM
|
#5
|
LQ Newbie
Registered: Feb 2006
Posts: 21
Original Poster
Rep:
|
Many times i try the program 'mail';
one time with a local user like:
$ mail user / root
$ Subject
...
and the e-mail take the right way,
but on the other;
$ mail duck@netscape.net
: for example
i get these messages, that it has the contact to 'AOL' or 'arcor' ISP's, but didn't fond "my" domain, as i describe it before.
Also trying directly with '$ /usr/bin/sendmail -v thokra < test.mail has no other result.
May be the problem is "DHCP", i'm sitting behind a router, although this constellation is not the newest i thought.
user_tom
|
|
|
03-04-2006, 04:58 AM
|
#6
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
What happens when you try '/usr/bin/sendmail -v duck@netscape.net < test.mail'?
I didn't have to set up my domain at all with sendmail, only when I first set networking options during the slackware installation. Usually sendmail will reply with '250-hostname.domain Hello localhost [127.0.0.1], pleased to meet you'
|
|
|
03-04-2006, 03:04 PM
|
#7
|
LQ Newbie
Registered: Feb 2006
Posts: 21
Original Poster
Rep:
|
For your answer many thanks!
Sure i had set a host name during the slackware installation, that is 'nux' and 'thokra' is me the user in system.
System message with 'mail duck@netscape.net' is as follows:
" (reason: 550 5.1.8 <thokra@nux2>: Sender address rejected: Domain not found)
----- Transcript of session follows -----
... while talking to mail.arcor.de:
>>> DATA
<<< 550 5.1.8 <thokra@nux2>: Sender address rejected: Domain not found
550 5.1.1 <th_rump@yahoo.de>... User unknown
<<< 554 5.5.1 Error: no valid recipients"
And i don't know how to set the right domain, naturally 'nux2' is not a recognized name in the www.
But i think somebody may be has a similaire constellation as this home-computer.
cheers --user-tom
|
|
|
03-04-2006, 03:43 PM
|
#8
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
'While talking to mail.arcor.de'
They won't relay for an unknown domain name it seems. Maybe an anti spam measure.
Although I have no problems sending out mail as 'dave' my login name, it may be that arcor are rejecting anything that isn't resolvable via dns
There is another setting in sendmail.cf which I have used:
SMART_HOST, smtp.blueyonder.co.uk
You could try setting this to your isps mail server address. I don't know any other settings that would affect how your domain info gets passed to the remote mail server.
|
|
|
03-04-2006, 06:55 PM
|
#9
|
LQ Newbie
Registered: Feb 2006
Posts: 21
Original Poster
Rep:
|
... i've found a solution with 'postfix'!
Thanks for response.
cheers --user_tom
|
|
|
All times are GMT -5. The time now is 06:23 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
|
|