- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Senmail problem for mutiple domains
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 11:50 AM
тАО08-22-2002 11:50 AM
call them domain1.com
domain2.com
domain3.com
Added the following to /etc/aliases
duser1: @domain1.com
duser2: @domain2.com
duser: @domain3.com
Made the following changes to /etc/mail/access
@domain1.com RELAY
@domain2.com RELAY
@domain3.com RELAY
changes to /etc/mail/mailertable
domain1.com smtp:mail.domain1.com
domain2.com smtp:mail.domain2.com
domain3.com smtp:mail.domain3.com
following changes made to
/etc/mail/virtusertable
@domain1.com duser1
@domain2.com duser2
@domain3.com duser3
Ran the following commands
makedmap -v hast /etc/mail/virtusers.db < /etc/mail/virtusers
makedmap -v hast /etc/mail/mailertable.db < /etc/mail/mailertable
Got no errors. DNS is fully configured and working and the firewall is not blocking access to port 53.
Can not get sendmail name lookups to be valid for inquiry@doman1.com
/etc/sendmail.cf Directive 90 section is uncommented, sendmail was restarted.
What have I missed.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Tags:
- sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 11:51 AM
тАО08-22-2002 11:51 AM
Re: Senmail problem for mutiple domains
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 02:09 PM
тАО08-22-2002 02:09 PM
Re: Senmail problem for mutiple domains
One thing to be sure of on the firewall. and again I don't know your firewall. DNS is UDP traffic, make sure the firewall allow this traffic bi-directional.
I have yet to find a firewall that can remember to map back UDP traffic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 03:48 PM
тАО08-22-2002 03:48 PM
Re: Senmail problem for mutiple domains
It is also passing outside mail on port 25, so since its handling MY domain, I started getting outside mail again via an exchange server on the local network.
Because of the sendmail setup, the Linux server itself can't resolve alias mail. I'm scratching my head on this one, because I think I did everything right. Obviously I didn't.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2002 11:13 PM
тАО08-22-2002 11:13 PM
SolutionCould you share the error's with us please. In what stage of receiving/sending does it fail, with which error code.
A configuration part I have not seen, is 'Fw/etc/mail/local-host-names' see below
Another thing that you can check: You say DNS is fully configured. Can you share the result of: 'nslookup -q=mx domain3.com' it should return lowest MX value for this particular server e.g.
domain3.com pref = 10, mailexchanger = host.domain1.com
domain3.com pref = 50, mailexchanger = mail.your_isp.com
...
and records for nameservers authorative for these domains, as well as reverse lookup resulting in IP for the mentioned hosts
--------- Class w explaination -----
w holds the values, that this_host_accepts_mail_for
if mail for your domains should also be accepted by this host, then they needs to be included into 'w'. I suggest to add the following to /etc/mail/local-host-names
host
host.domain1.com # assuming host is part of domain1
domain1.com
domain2.com
domain3.com
local-host-names is referenced from sendmail.cf by the line:
Fw/etc/mail/local-host-names
local-host-names == sendmail.cw on hp-ux
You can test if sendmail sees the correct values by starting sendmail in test mode:
sendmail -bt
> $=w #should return all the values sendmail holds for 'w'
localhost
host
host.domain1.com
domain1.com
domain2.com
domain3.com
[127.0.0.1]
[IP for host.domain1.com]
>
The next bit is from sendmail.cf on hp-ux explaining the Class 'w':
Aliases for Local Host (class w): This configuration will automatically recognize that mail to users at the local host or any of its host name aliases or CNAMEs should be delivered locally. Other host names that you wish to recognize as local can be added to class w as either a simple class definition (Cw) or a file class (Fw). Any names added to class w must be canonical names. For example, by default, only the server of an nfs cluster runs the sendmail daemon, and mail from the clients is sent out with headers indicating that it originated on the server. However, you might want the server also to accept mail addressed to users at the clients. You could have nameserver MX records directing mail for the clients to the server, and make the server recognize the clients' host names as local. By default class W is defined in 2 stages. Using Cw to add the name "localhost" to class w and then adding the names listed in the file "/etc/mail/sendmail.cw" to class w using Fw. To add other hostnames to class w just add the names as new lines in the file sendmail.cw.
Hth
Kasper Haitsma
hp ned.b.v.
Messaging & OVO-UX Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2002 10:34 AM
тАО08-23-2002 10:34 AM
Re: Senmail problem for mutiple domains
Here are the results from command line sendmail
sendmail -v -d9 -d38 inquiry@domain1.com
getauthinfo: invest@localhost
host_map_lookup(domain1.com) => FOUND domain1.com
inquiry@domain1.com... User unknown
Steve was here
.
invest... aliased to @domain1.com
host_map_lookup(domain1.com) => CACHE domain1.com
/home/invest/dead.letter... Saved message in /home/invest/dead.letter
nslookup -q mx
domain1.com mail exchanger = 10 domain1.com.
These results match the DNS record
Here are the results from the sendmail -bt command.
I'm going to give actual results, I'm tired of changing them.
@isnamerica.com
isnamerica.com
ftp.investmenttool.com
@investmenttool.com
shell.investmenttool.com
dns1.investmenttool.com
localhost.localdomain
localhost
investmenttool.com
[66.92.143.194]
www.investmenttool.com
[127.0.0.1]
jerusalem.investmenttool.com
news.investmenttool.com
jerusalem
The server serves hostname is jerusalem
Its primary domain is investmenttool.com
Linux, Red Hat 7.3 on a Dell Poweredge 500SC 1.2 G Ram 2 40 G drives, RAID 1/0 mirror
and records for nameservers authorative for these domains, as well as reverse lookup resulting in IP for the mentioned hosts
Reverse lookups are working right now.
Go ahead and try it, the DNS server is working well.
Here is local-host-names
[root@jerusalem mail]# cat local-host-names
# local-host-names - include all aliases for your machine here.
www.investmenttool.com
investmenttool.com
jerusalem.investmenttool.com
isnamerica.com
@investmenttool.com
@isnamerica.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2002 10:56 AM
тАО08-23-2002 10:56 AM
Re: Senmail problem for mutiple domains
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2002 11:41 AM
тАО08-23-2002 11:41 AM
Re: Senmail problem for mutiple domains
/etc/mail/virtusertable
@domain1.com duser1
@domain2.com duser2
@domain3.com duser3
to this
/etc/mail/virtusertable
@domain1.com %1
@domain2.com %1
@domain3.com %1
Still get the 550 error. I feel like I'm really close.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2002 11:49 AM
тАО08-23-2002 11:49 AM
Re: Senmail problem for mutiple domains
Is that necessary?
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2002 01:00 PM
тАО08-23-2002 01:00 PM
Re: Senmail problem for mutiple domains
Anyway you seem to be very close. I think it has to do with the virtuser table, as you are working on as well. Do duser1 .. duser3 really exist on this machine? These need to be real e-mail addresses or aliases. It depends on your current sendmail.cf, if you have to rebuild it. Is there a line like:
Kvirtuser hash -o /etc/mail/virtusertable
and other references to the variable virtuser in the rules (do not mess with them please)
did you build
HTH
Kasper Haitsma
hp ned bv