Home > sendmail stat > sendmail stat unknown mailer error 2

Sendmail Stat Unknown Mailer Error 2

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.3 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up /etc/aliases using pipe to run script return error (mailer=prog, dsn=5.3.0, stat=unknown mailer error 2) up vote 1 down vote favorite I would like to get any advice for my issue to run script on /etc/aliases. At first, here are my envirements/script. OS : centos 6 script : python 2.6.6 mail : sendmail-8.14 / dovecot-2x python script (it's very simple for testing) import sys f = open("aa.txt", 'w') for i in range(1, 5): data = "%d \n" % i f.write(data) f.close() sys.exit() and then I did some congiguration to use smrsh like, make link on /etc/smrsh/, move script on /etc/smrsh/... and then modified the /etc/aliases as below: testuser: "|/etc/smrsh/python /etc/smrsh/aa.py" and then run newaliases. When I send email to testuser user, maillog shows error as below: (sorry for changing some info like IP, domain) Mar 13 11:14:38 localhost sendmail[8153]: s2DBEcX7008153: from=, size=4448, class=0, nrcpts=1, msgid=, proto=ESMTP, daemon=MTA, relay=relay.test.com [xx.xxx.000.xx] Mar 13 11:14:39 localhost sendmail[8154]: s2DBEcX7008153: to="|/etc/smrsh/python /etc/smrsh/aa.py", ctladdr= (8/0), delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=34652, dsn=5.3.0, stat=unknown mailer error 1 Mar 13 11:14:39 localhost sendmail[8154]: s2DBEcX7008153: s2DBEdX7008154: DSN: unknown mailer error 1 but, just forwarding email via /etc/aliases works very well like, testuser : test@zzz.com I tried to run with smrsh on the shell : smrsh -c "|/etc/smrsh/python /etc/smrsh/aa.py" it also works very well. here are my sendmail.cf for Mprog, Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=procmail -t -Y -a $h -d $u Mprog, P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL, R=EnvToL/Hdr

by: [ date ] [ thread ] [ subject ] [ author ] Just in case anyone else gets this problem, I diagnosed it by piping an email into rt-mailgate and got a message telling me I had http://stackoverflow.com/questions/22378100/etc-aliases-using-pipe-to-run-script-return-error-mailer-prog-dsn-5-3-0-stat no permission to create tickets. It would seem that in my haste to try the glorious features of RT2, I forgot to RTFM and set up some initial permissions for my queue :-) Hope that helps someone http://lists.bestpractical.com/pipermail/rt-users/2002-February/006737.html someday! Paul. > I've done a clean, out-of-the-box install of RT 2.0.11, but I'm getting an > "Unknown mailer error 2" when I send an email to my rt alias. > > My maillog contains entries like this: > > Feb 8 07:17:52 localhost sendmail[8776]: g18CHpM08775: > to="|/home/rt2/bin/rt-mailgate --queue general --action correspond", > ctladdr= (8/0), delay=00:00:01, xdelay=00:00:00, > mailer=prog, pri=30022, dsn=5.3.0, stat=unknown mailer error 2 > > (snip!) Previous message: [rt-users] Unknown mailer error 2 Next message: [rt-users] Can a non-privileged user specify keywords/dates? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the RT-Users mailing list

Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Software [SOLVED] I need to forward email to php script User Name Remember Me? Password http://www.linuxquestions.org/questions/linux-software-2/i-need-to-forward-email-to-php-script-855718/page2.html Linux - Software This forum is for Software issues. Having a problem installing a http://www.textndata.com/forums/stat-unknown-mailer-error-255-a-181194.html new program? Want to know which application is best for the job? Post your question in this forum. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe sendmail stat to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If sendmail stat unknown you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Page 2 of 3 < 1 2 3 > Search this Thread 01-13-2011, 04:52 PM #16 bathory LQ Guru Registered: Jun 2004 Location: Piraeus Distribution: Slackware Posts: 11,480 Rep: Here are a few things about sendmail: Where did you find that Mprog line? Code: Mprog, P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/, T=X-Unix, A=sh -c $u Note: That between "Mprog" and "P=

stat=unknown mailer error 255 Ask a Question Sign up for Free 247 Experts currently online. Ask Questions for Free! stat=unknown mailer error 255 - SendMail I have sendmail 8 running on RedHat 9. I have smrsh configured, and a copy of qpage in /etc/smrsh. I also have an alias set up to send mail using qpage. and example of an alias is: tjl: "|/usr/bin/qpage -l 0 -m -p tjl" Oct 14 19:33:04 newitserv sendmail[32053]: h9ENX4Aa032052: ... Results 1 to 3 of 3 LinkBack LinkBack URL About LinkBacks Bookmark & Share Add Thread to del.icio.usTweet this thread Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 10-14, 11:44 PM #1 stat=unknown mailer error 255 I have sendmail 8 running on RedHat 9. I have smrsh configured, and a copy of qpage in /etc/smrsh. I also have an alias set up to send mail using qpage. and example of an alias is: tjl: "|/usr/bin/qpage -l 0 -m -p tjl" Oct 14 19:33:04 newitserv sendmail[32053]: h9ENX4Aa032052: to="| /usr/bin/qpage -l 0 -p tjl", ctladdr= (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30543, dsn=5.3.0, stat=unknown mailer error 255 Oct 14 19:33:04 newitserv sendmail[32053]: h9ENX4Aa032052: h9ENX4Aa032053: DSN: unknown mailer error 255 Does anyone know what could be wrong? Chris Reply With Quote 10-15, 06:27 AM #2 Re: stat=unknown mailer error 255 Chris Fogarty wrote: 1) What is reported by the command given below ? ls -l /usr/bin/qpage [Does /usr/bin/qpage exist ?] 2) Post defintion of your prog mailer. As root run echo '=M' | sendmail -bt -Am | grep prog -- Andrzej [pl>en: Andrew] Adam Filip http://www.polbox.com/a/anfi/ onet.pl wp.pl [former: pl] *Random Epigram* : There's no point in being grown up if you can't be childish sometimes. -- Dr. Who Andrzej Reply With Quote 10-15, 08:58 PM #3 Re: stat=unknown mailer

Related content

sendmail stat transient parse error message queued for future delivery
Sendmail Stat Transient Parse Error Message Queued For Future Delivery p Things Small and Medium Business Service Providers All Solutions Services Advise Transform and Manage Financing and Flexible Capacity IT Support Services Education and Training Services All Services Products Integrated Systems Composable Systems Converged Systems Hyper Converged Systems Blade Systems Infrastructure Management Software Application Lifecycle Management Application Delivery Management Big Data Analytics DevOps Enterprise Security Hybrid and Private Cloud Information Governance Information Management IT Service Management Operations Management Server Management Software as a Service SaaS Software-Defined Data Center Storage Management All Software Servers Rack Servers Tower Servers Blade Servers Density