sendmail through cgi

sendmail through cgi

Posted by: chriscana
Posted on: 2007-02-03 08:40:00

I have several cgi scripts, tell-a-friend and such, that have worked fine with my previous hosting provider, but won't work with dreamhost. They use a simple sendmail call, but all the emails get bounced back to me with Undeliverable Mail: 554 Relay Access Denied. I am using a direct call to /usr/sbin/sendmail ... does there need to be some other switches in the sendmail call to make these scripts work?

Re: sendmail through cgi

Posted by: ardco
Posted on: 2007-02-03 08:56:00

Could it be related to this?

http://www.dreamhoststatus.com/2007/01/02/relay-access-denied-errors/

Re: sendmail through cgi

Posted by: chriscana
Posted on: 2007-02-03 09:23:00

I don't think so, because I am using an smtp method in zen cart and phpbb and they are all sending. It is only when I try to use a sendmail request in any cgi scropt (or even their one-click install programs like zen cart and phpbb) that I get the 554 Relay Access Denied error. I have opened two help desk tickets with dreamhost, and they haven't answered. Other quetions I have had in the past were answered in 24 hours or less.

Re: sendmail through cgi

Posted by: ardco
Posted on: 2007-02-03 09:29:00

The easy questions are always faster to answer. smile

Could it be something with hotmail?

http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_troubleshooting&Number=64881

There seems to be some intermittent problems, and they probably don't have it sorted out.

BTW, I don't think multiple tickets on the same topic help any. YMMV.

Re: sendmail through cgi

Posted by: chriscana
Posted on: 2007-02-03 09:31:00

No nothing to do with hotmail. It has to do with the sendmail call in a cgi or php script that tries to send email. They all get bounced back. When you use a script smtp with auth call, eveything works.

Is anyone successfully calling sendmail in a script in having it work?

Edited by chriscana on 02/03/07 09:31 AM (server time).

Re: sendmail through cgi

Posted by: ardco
Posted on: 2007-02-03 09:35:00

I use it, but only to emails on dreamhost, which then forward elsewhere.

Tags: sendmailcgi scriptsdreamhostrelay access deniedhosting providerswitchesusr