LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   sendmail error (domain does not exist) (https://www.linuxquestions.org/questions/slackware-14/sendmail-error-domain-does-not-exist-202637/)

kwelling 07-08-2004 12:17 PM

sendmail error (domain does not exist)
 
Hello,

After I installed Slackware 10 I tried to set up an e-mail server (both POP and SMTP). The POP(a3d) server seems to work allthough I can't send myself an e-mail because the SMTP server keeps returning me the following message;

The original message was received at Thu, 8 Jul 2004 18:11:31 +0200 (CEST)
from host.isp.nl [80.x.x.x]

----- The following addresses had permanent fatal errors -----
<user@host.isp.nl>
(reason: 553 5.1.8 <post@website.nl>... Domain of sender address post@website.nl does not exist)

----- Transcript of session follows -----
... while talking to host.isp.nl.:
>>> MAIL From:<post@website.nl> SIZE=1168
<<< 553 5.1.8 <post@website.nl>... Domain of sender address post@website.nl does not exist
501 5.6.0 Data format error

user@host.isp.nl is an existing user at my slackware computer.

website.nl is my own working website at some hosting provider's infrastructure.

Yet, after hours of trying and reading, I still don't know what this error exactly implifies and / or how to solve it :(

Please help me out !

shilo 07-08-2004 01:45 PM

Can user@host.isp.nl send email to user@host.isp.nl ? How about to root@host.isp.nl?

Did you just use the stock sendmail.cf file or did you make changes to it?

kwelling 07-08-2004 02:22 PM

I used the stock sendmail.cf and i changed the following values:

define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun,goaway')dnl
* added goaway

dnl define(`SMART_HOST',`smtp.isp.nl')
* uncommented, set to the smtp server of my isp

LOCAL_DOMAIN(`domain.net')dnl
* changed to a .net domain which is pointing to my own ip (80.x.x.x)

then i used the following (from your site I believe, thanks for putting it up since I learned through it ;) to create the .cf;

cd /usr/share/sendmail/cf/cf
cp sendmail-slackware.mc config.mc
m4 /usr/share/sendmail/cf/m4/cf.m4 config.mc > /etc/mail/sendmail.cf

-

I added an entry pointing to 192.168.1.1 in my /etc/hosts (I run two NIC's, 10.0.0.1 and 192.168.1.1)
I tried changing /etc/mail/access by putting:

domain.net RELAY
host.isp.nl RELAY

and I ran 'makemap hash /etc/mail/access.db < /etc/mail/access' when I found out that just changing access only wouldnt do the trick.

Furthermore I added all DNS names my host uses to /etc/mail/local-host-names.

All of this is tried over and over again, I've changed back values and so on and so fort.. I think I've had all possible combinations, yet I still recieve the next line in my maillog (tail -f /var/log/maillog):

Jul 8 21:12:05 host sm-mta[828]: i68JC5QP000828: ruleset=check_mail, arg1=<post@website.nl>, relay=smtp-out1.isp.nl [194.109.x.x], reject=553 5.1.8 <post@website.nl>... Domain of sender address post@website.nl does not exist
Jul 8 21:12:05 host sm-mta[828]: i68JC5QP000828: from=<post@website.nl>, size=1138, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=smtp-out1.isp.nl [194.109.x.x]
I would be very gratefull to anyone providing me with a solution. Well, shilo, I am allready gratefull for your answer ;)

I'll keep trying, nevertheless hehe *that was a sourish laugh* :D

to answer your question: yes, on the host itself I can mail myself and root and reverse.. I can also retrieve the mail sent by popa3d, so that does work.

shilo 07-08-2004 03:17 PM

Ok, this may be a stupid question, but bear with me for a moment...

When you changed the values, did you change them in /etc/mail/sendmail.cf or did you change them in /usr/share/sendmail/cf/cf/sendmail-slackware.mc ? If you changed them in /etc/mail/sendmail.cf and then

Quote:

cd /usr/share/sendmail/cf/cf
cp sendmail-slackware.mc config.mc
m4 /usr/share/sendmail/cf/m4/cf.m4 config.mc > /etc/mail/sendmail.cf
You will have overwritten your changes. You need to make sure that you are making the changes to /usr/share/sendmail/cf/cf/sendmail-slackware.mc .

There are other ways to go about it, but this is what I believe to be the preferred method.

If this isn't making a whole lot of sense, post your current /etc/mail/sendmail.cf file and I'll see if I can figure out what is going on. Also, post your current domain and host name. If you want, post a fake host name and domain and edit the /etc/mail/sendmail.cf as appropriate to match.

The other thing that comes to mind is the:

Quote:

LOCAL_DOMAIN(`domain.net')dnl
* changed to a .net domain which is pointing to my own ip (80.x.x.x)
I don't remember having to do that on my setup, but I have received an email from another person who said that they did have to. You may want to try a) commenting that line out, or b) change `domain.net' to `host.isp.nl' .

kwelling 07-09-2004 05:16 AM

Hello !

The problem above was solved by changing the nameserver entry from the (bouncing) router local address into an existing nameserver ip from the net in /etc/resolv.conf

Thank you though, for helping !


All times are GMT -5. The time now is 05:17 AM.