• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

sendmail

I have a FreeBSD 3.3 box hostnamed "svr1.mydomain.com", but, I find that I can send email to "andrewyu@svr1.mydomain.com" and cannot sent to "andrewyu@mydomain.com" ? Why ?

How can I force this sendmail to receive email address for multiple domain ?

Andrew
0
andrewyu
Asked:
andrewyu
  • 8
  • 6
1 Solution
 
ahoffmannCommented:
sounds that you have set in sendmail.cf:

Djsvr1.mydomain.com

which should not be set, or

Djmydomain.com
0
 
andrewyuAuthor Commented:
Do you mean that I should un-remark #Dj$w.Foo.COM under "# my official domain name # ... define this only if sendmail cannot automatically determine your domain" and modify it ? Anyway, Djmydomain.com or Dj$wmydomain.com ?

Andrew
0
 
ahoffmannCommented:
comment out Dj
as the note in sendmail.cf said, only use it when your system cannot detect it as needed
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
andrewyuAuthor Commented:
Do you mean that I should place "mydomain.com" there ? Anyway, what is the meaning of "Dj" ?

Thank you very much !

Andrew
0
 
andrewyuAuthor Commented:
Anyway, how come the machine cannot determine the domain name ?

Andrew
0
 
andrewyuAuthor Commented:
I use "Djmydomain.com" and it is ok now ! BUT, what is "Dj" ?

Andrew
0
 
ahoffmannCommented:
Dj is the macro definition key for mysomain.com (see man sendmail.cf)
0
 
andrewyuAuthor Commented:
Thank you very much !

Andrew
0
 
ahoffmannCommented:
see comments
0
 
andrewyuAuthor Commented:
Thank you very much !

Anyway, place "Dj$m" now and it can also work properly !

By the way, can I put "Djmydomain1.com" and "Djmydomain2.com" there in order to receive mail for more than one domain ?

Andrew
0
 
ahoffmannCommented:
NO, therfore you need virtual domains and appropriate MX records in DNS.
Dj is vor sending only.
0
 
andrewyuAuthor Commented:
Thank you very much, but, how can I setup a FreeBSD server regarding this issue ? Any information on the interenet ?

Andrew
0
 
andrewyuAuthor Commented:
Thank you very much !

Andrew
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now