cancel
Showing results for 
Search instead for 
Did you mean: 

Sandmail syntax - dsn flag

SOLVED
Go to solution
Maureen Gunkel
Trusted Contributor

Sandmail syntax - dsn flag

I have tried every which way to use this flag, and can't get it to work. My command is as follows:

sendmail -it [dsn flag????] < mail.txt

-ndsn Set delivery status notification conditions. Then valid conditions with which dsn can be set are as follows:
never - For no notifications.

failure - If delivery failed.

delay - If delivery is delayed.

success - When message is successfully delivered.

I'm using Version 8.8.6 on HP-UX 11.00

Thanks in advance,
No matter where you go, there you are.
5 REPLIES
Stefan Farrelly
Honored Contributor

Re: Sandmail syntax - dsn flag


I just tested it, works fine.
If I use;
sendmail -v -Nsuccess <test
EOF
it emails fine and says NOTIFY=SUCCESS in the output.
So use -N and it should work fine.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Maureen Gunkel
Trusted Contributor

Re: Sandmail syntax - dsn flag

Please forgive my ignorance, but by what method am i 'Notified' that a delivery has been successful, has failed, etc.?
No matter where you go, there you are.
Maureen Gunkel
Trusted Contributor

Re: Sandmail syntax - dsn flag

Please forgive my ignorance, but by what method am i 'Notified' that a delivery has been successful, has failed, etc.?
No matter where you go, there you are.
Stefan Farrelly
Honored Contributor
Solution

Re: Sandmail syntax - dsn flag


I think you should get an email back giving you the status of delivery, as long as your return email address was setup correctly.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Anthony deRito
Respected Contributor

Re: Sandmail syntax - dsn flag

Maureen, there are a lot of "gotchas" with using DSN. Check out this link for a complete description:

http://www.sendmail.org/~ca/email/dsn.html

Tony