- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- queuing with sendmail and mailx
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
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
тАО10-12-2006 09:30 AM
тАО10-12-2006 09:30 AM
sendmail -v -b8.99 -v38.99 myname@myorg.org
the email is sent immediately and relayed to our groupwise smtp and mta hosts and then to our groupwise and outlook clients.
When I use mailx it will take up to 10 minutes or so for the mail to reach the smtp server and then to our desktop client(s). The mailq command shows it sitting there quite nicely in deferred.
output: (host map: lookup (mydomain.org): deferred)
I assume my sendmail daemon is set to queue the messages up and wait a prescribed time. I looked but was unable to find (or perhaps decipher) how to manually force sendmail to submit the queued email or to restart the sendmail daemon and force it to send smtp at a faster cycle.
If the solution is to submit the email using sendmail and skipping mailx then please advise that to be the case.
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 09:52 AM
тАО10-12-2006 09:52 AM
SolutionHave you compared apples to apples? That is, a simple message to the same address, like this:
cat /etc/fstab | mailx me@myaddr.someplace.com
cat /etc/fstab | sendmail me@myaddr.someplace.com
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 09:53 AM
тАО10-12-2006 09:53 AM
Re: queuing with sendmail and mailx
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 09:56 AM
тАО10-12-2006 09:56 AM
Re: queuing with sendmail and mailx
-q: Process saved messages in the queue at given intervals.
The default value is 30m.
You can force the queue processing with the sendmail -q command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 10:16 AM
тАО10-12-2006 10:16 AM
Re: queuing with sendmail and mailx
sendmail -v -d8.99 and -d38.99 myname@myorg.org
shows this:
;; res_querydomain(IFASHP, , 1, 1)
;; res_query(IFASHP., 1, 1)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
seq_map_parse(aliases.files, )
;; res_query(16.0.1.10.in-addr.arpa, 1, 12)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
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(host:resolve, NULL, 0)
host:resolve 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)
map_init(host:resolve, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
getcanonname(spokaneschools.org), trying dns
dns_getcanonname(spokaneschools.org, trymx=1)
dns_getcanonname: trying spokaneschools.org. (ANY)
;; res_querydomain(spokaneschools.org, , 1, 255)
;; res_query(spokaneschools.org., 1, 255)
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; Querying server (# 1) address = 0.0.0.0
;; res_query: send error
NO: errno=239, h_errno=2
getcanonname(spokaneschools.org), failed, stat=75
spokaneschools.org: Name server timeout
dougf@spokaneschools.org... Transient parse error -- message queued for future d
elivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 10:22 AM
тАО10-12-2006 10:22 AM
Re: queuing with sendmail and mailx
/etc/resolf.conf
domain yourdomain.com
nameserver 192.168.1.1
/etc/nsswitch.conf
hosts: dns [NOTFOUND=continue] files
ipnodes: dns [NOTFOUND=continue] files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2006 11:37 AM
тАО10-12-2006 11:37 AM
Re: queuing with sendmail and mailx
nsquery hosts spokaneschools.org
nslookup -type=mx spokaneschools.org
nsquery tests the actual resolver tasks in detail. nslookup for the MX records determines if your DNS server has any mail delivery records for spokaneschools.org. If either of these fail, sendmail (and therefore mailx) will fail.
There are two other files to check, both in /etc/mail. sendmail.cw should have two (uncommented) lines:
localhost
yourserver
and service.switch (if it exists) should have:
hosts dns files
aliases files
After making any changes to these files, be sure to restart sendmail:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Note: mailx just passes the mail to sendmail and the message is immediately sent. If something goes wrong with the address or the relay server, then the mail will be queued.
Bill Hassell, sysadmin