- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- needing sendmail errors
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
07-10-2002 07:05 AM
07-10-2002 07:05 AM
Got some HPUX 10.20 with sendmail 8.8.6 (PHNE_17135) and HPUX 11.00 (PHNE_18546) that do not acknowledge certain error messages. Example, if I am to send mail to another user and I purposely fat finger the user name, the mail.log will still report that the mail was sent even though the user does not exist (username was fatfingered).
What I am looking for is a way to have mail acknowledge these various error messages and to send an email to the sender saying that "Undeliverable - user unknown"
Even if I am to interact in verbode mode with port 25 the output says that mail was sent - but the user does not exist!
I have the feeling that this setup comes from the MS Exchange (the mail relay) side but what else needs to be done - or am I on the right track?
Many thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 07:28 AM
07-10-2002 07:28 AM
Re: needing sendmail errors
By default, sendmail will accept a message for delivery if the message "looks" right (domain resolves), even if the mail recipient doesn't exist.
Among other things, this technique allows mail front-ends (intermediary boxes that recieve mail) to not have to worry with whether or not an account exists.
In the old days, this used to be okay, because if the recipient didn't exist, sendmail would turn around and generate a bounce to the original sender.
Today, the evil spam folks tend to use reply addresses that are bogus, so you end up queueing any mail that's not deliverable. Eventually, all that mail gets bounce to the postmaster.
To get sendmail to reject mail for users that don't exist, define the virtusertable. virtusertable takes addresses formatted like this
you@yourdomain.com you
firstname.lastname@yourdomain.com first
yourforward@yourdomain.com yourforward@yourotherdomain.com
where the left hand side is a valid visible e-mail address and the right hand site is a
valid terminating account (a username or an alias) or another e-mail account.
If you "close" the domain with
@youdomain.com error:nouser No such user
any addresses that are not defined in the virtusertable will be rejected outright with a 5XX series message.
To enable virtusertable, search for virt in /etc/mail/sendmail.cf. Uncomment the virtusertable rulesets:
Kvirtuser dbm /etc/mail/virtusertable
# handle virtual users
R$+ < @ $=w . > $: < $(virtuser $1 @ $2 $@ $1 $: @ $) > $1 < @ $2 . >
$: < $(virtuser $1 + * @ $3 $@ $1 $: @ $) > $1 + $2 < @
$3 . >
$: < $(virtuser $1 @ $3 $@ $1 $: @ $) > $1 + $2 < @ $3 .
>
R<@> $+ < @ $+ . > $: < $(virtuser @ $2 $@ $1 $: @ $) > $1 < @ $2 . >
Add the virtusertable to /etc/mail. "compile" the virtusertable:
/usr/sbin/makemap dbm /etc/mail/virtusertable < /etc/mail/virtusertable
Restart (or stop/start) sendmail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 07:54 AM
07-10-2002 07:54 AM
Re: needing sendmail errors
try sendmail from commandline with debugging switches.
-d11.1 - Trace Delivery
-d13.1 - Show Delivery
then u can identify where exactly it is going.
usage:
sendmail -v -d11.1
(ur message)
. (dot)
regds
ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 08:04 AM
07-10-2002 08:04 AM
Re: needing sendmail errors
Not working. Any ideas why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 08:10 AM
07-10-2002 08:10 AM
Re: needing sendmail errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 09:28 AM
07-10-2002 09:28 AM
SolutionRFC 821 (Simple Mail Transfer Protocol) doesn't require an implementation to say that a user does not exist.
From
http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc0821.html#sec-3.3
The VRFY and EXPN commands are not included in the minimum implementation (Section 4.5.1), and are not required to work across relays when they are implemented.
Many folks turn of VRFY and EXPN to minimize security issues. User virtusertable during the SMTP transaction to cut down on undeliverable mail.
In any case, the short answer is SMTP servers (Exchange, sendmail, other) aren't required to give you the message you're looking for, so they don't.
sendmail will behave like you want if you turn on virtusertable or vrfy. YMMV with Exchange. Search for vrfy in the Exchange documentation to see if you can influence the behavior of Exchange.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2002 09:42 AM
07-10-2002 09:42 AM
Re: needing sendmail errors
Most mail systems today will not send user unknown msgs back - they simply toss that mail away. You can thank spammers & hackers for that.
As to the postmaster issue:
1) did you bounce sendmail after changes to the .cf file?
2) Did you rebuild the alias DB after pointing postmaster to root?
sendmail -bi
OR
newaliases
As a side note, I generally liked to also point root to a mail account I could check "easier" or at least more frequently.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2003 09:54 PM
01-07-2003 09:54 PM
Re: needing sendmail errors
Are you getting the "failure mesg" now?