- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail
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
Forums
Discussions
Discussions
Discussions
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
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
01-22-2003 04:08 AM
01-22-2003 04:08 AM
Sendmail
I am trying to get sendmail working, i can achieve this if my machine only uses /etc/Hosts. but if i try to to configure this machine to work the way all my other servers work sendmail fails to find mail server.
We normally have the system set to look at the host file first then if not found there DNS, talking to a NT PDC.
i can see the mail server using the current set up.
but sendmail just refuses to see it.
i am using HPUX 11.00.
has anyone had a similar problem in the past.
regards
andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 05:50 AM
01-22-2003 05:50 AM
Re: Sendmail
sendmail.cf - what is the DS variable, and the Dj variable?
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 06:00 AM
01-22-2003 06:00 AM
Re: Sendmail
I had to change /etc/nsswitch.conf to DNS,files in order to make things work right.
Thats a more standardized or friendly way of dealing with the network or so our network people told me.
There are a lot of Windows based mail relay servers that have problems relaying mail from HP-UX. Push those administrators to stay current on bug fixes. I once had project delay four months becaue the relay server was rejecting mail. I spent days messing with a email attachment script while the relay server admin says nothing was wrong.
After lots of politics, he put in a general bug fix and wala, my mail went through with the original script, written 4 months ago.
I also had to set up a DNS server because our network people decided to change our internal domain name.
I don't think you need to to the nsswitch change, but if there is a dns server available, its probably a pretty good idea.
It will cause omniback 3.x problems and will totoally break openspool, if you still use it.
If you don't want to set the Dj variable in sendmail.cf you can make your hostname fully qualified.
/etc/rc.config.d/netconf
Change your hostname to hostname.yourdomain.com
Here is a good diagnostic command for sendmail, lots of nice data and it can be redirected to a file. Just run the commandline to a valid email addy, type in a one line message, then period then enter.
/usr/sbin/sendmail -v -d8.99 -d38.992 helpdesk@yourdomain.com
P
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
01-22-2003 06:08 AM
01-22-2003 06:08 AM
Re: Sendmail
Make sure
* /etc/rc.config.d/netconf is correct with IP, name, default gateway & subnet mask
* /etc/resolv.conf has the correct info e.g:
domain yourdomain.com
nameserver x.x.x.x
Also make sure your full domain name (hostname in the /etc/rc.config.d/netconf and the domain in /etc/resolv.conf) is configured on the nameserver as specified in /etc/resolv.conf
Then, the default sendmail should work fine.
Chuck J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 06:30 AM
01-22-2003 06:30 AM
Re: Sendmail
If you are using a Relay server you need set DS definition into /etc/mail/sendmail.cf, i.e:
DS
Where
Also you can try setting your "official domain name", i.e:
Dj
After any change in /etc/mail/sendmail.cf you must restart sendmail service, these commands allow you stop|start sendmail service:
/sbin/init.d/./sendmail stop
/sbin/init.d/./sendmail start
You can check your pending mail queue by the comand: "mailq -v". All mails queued are in /var/spool/mqueue. Each email have 2 files, one is mail header and other is data
Remember always that sendmail variable must be set to 1, in /etc/rc.config./mailservers file.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 06:46 AM
01-22-2003 06:46 AM
Re: Sendmail
i will action pionts kindly supplied first thing monday, any body else that may have some thoughts, great.
regards
andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 01:39 AM
02-04-2003 01:39 AM
Re: Sendmail
i eventually have got round to trying the sendmail problem and have got this error when i try to run it.( it looks at hosts file first then dns, which it seems to be doing)># rew.@company name.co.uk good morning <
seq_map_parse(aliases.files, )
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
getcanonname(company name.co.uk), trying files
text_getcanonname(company name.co.uk)
getcanonname(company name.co.uk), trying dns
dns_getcanonname(company name.co.uk, trymx=1)
dns_getcanonname: trying company name.co.uk. (ANY)
;; res_querydomain(company name.co.uk, , 1, 255)
;; res_query(company name.co.uk., 1, 255)
;; Querying server (# 1) address = 10.132.192.6
;; Querying server (# 1) address = 10.132.192.6
;; Querying server (# 1) address = 10.132.192.6
;; Querying server (# 1) address = 10.132.192.6
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)
Any ideas.
andy