[ic] Setting up SMTP, order e-mail sent to me but not to 'customer' BUG?

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Sun Dec 9 19:57:00 2001


On Sun, Dec 09, 2001 at 01:10:34PM -1000, Christine Chaney wrote:
> Just a note the error.log file does not have the $ next to none $none
> That was just the result of copying/pasting from a wraparound line in pico.
> 
> / is the viaverio root directory
> we both have copies of sendmail
> when I start sendmail from the command line I have to type
> virtual /usr/sbin/sendmail or /usr/lib/sendmail or /bin/sendmail
> (/bin/sendmail though is just a ln -s to /usr/lib/sendmail) I've tried all
> in the interchange.cfg I've also tried all the viaverio sendmails, I've also
> tried even putting the virtual tag in there, no luck.
> yet all these programs are located at /usr/home/gigabyte/  ... and the paths
> above
> if I don't type the virtual I get a sendmail error telling me it could not
> find the sendmail.cf file in the /etc directory.  Which it is there and


That 'virtual' is a wrapper changing the sendmail paths.  It might
even be doing a chroot.  Are your sendmail logs fubar too?  Or simply 
missing?  Is virtual a script or a binary?  SUID?  Try strace virtual 
/usr/sbin/sendmail and see what it tells you.  Run strings on virtual 
and see if you can figure it out.

This sounds like something your service provider's sysadmin can answer
for you much quicker than we can guess.



> perfect condition.  It results because its trying to find it on viaverios
> side. The viaverio sendmails will start from the command line without this,
> but they wont start from the cgi bin.  Mine will start from the cgi-bin  in
> programs like formmail and such but with Interchange its just not working.
> 
> But that aside, in the Util.pm and Interpolate.pm files I noted how it sends
> mail.  It does do a check to see what your sendmailprogram directive says.
> But it tries to send the customer e-mail via sendmail no matter what you
> specify in the sendmailprogram directive.  See the below portion of the
> error.log file.  If you look at the code in the perl files it will say if
> !ok{ code  error.log etc.. but above that it SEND: Sendmail { still was
> trying to send it via sendmail not Net:SMTP...
> 
> Christine
> 
> 168.105.116.15 x8he8DV4:168.105.116.15 - [09/December/2001:12:32:33 +0000]
> ff2 /cgi-bin/ff2/process.html Unable to send mail using $none
> > To 'christine@secureservers.net'
> > From '"Fashion Fantasies Customer Service" <orders@fashionfantasies.net>'
> > With extra headers ''
> > With reply-to ''
> > With subject 'Thank you for your order #TEST0025!'
> > And body:
> >
> > Dear Fashion Fantasies customer,
> >
> > Thank you for your order #TEST0025. It is being electronically processed.
> >
> >             Name: Christine Chaney
> >
> >    Email address: chris@secureservers.net
> >
> >          Address: Hale Aloha Ilima
> >                   2575 Dole Street #339A
> > City, State, Zip: Honolulu, HI  96822
> >          Country: US
> >
> >   Payment Method: Credit Card (visa)
> >  Shipping Method: UPS Ground Commercial
> >
> >    Daytime Phone: 957-1790
> >    Evening Phone:
> >
> >
> >
> > Quan  Item No.    Description                            Price
> Extension
> > ---- ----------- ------------------------------- -------------- ----------
> ------
> >   1   os28113     The Claw Hand Rake                    $14.99
> $14.99
> >
> >
> >                                                  SUBTOTAL
> $14.99
> >                                                  SALES TAX
> $0.00
> >                                                  SHIPPING
> $6.19
> >
> >                                                  ORDER TOTAL
> $21.18
> >
> >
> >
> > Should you have a question about your order, or about other Fashion
> Fantasies
> > products, please reply to this message and let us help.
> >
> > Always reference your order number when calling for a status.
> > Or you can check status via this URL:
> >
> >
> http://www.fashionfantasies.net/cgi-bin/ff2/process?mv_session_id=x8he8DV4&m
> v_pc=575&mv_username=U00010&mv_password=96822&mv_c$
> >
> > Remember, you can always visit our site at:
> >
> >     http://www.fashionfantasies.net/ff2
> >
> > Regards and thanks for your business!
> >
> > Fashion Fantasies
> > 2575 Dole Street #339
> > Anywhere, VA 20190
> >
> >
> > FAX:
> >
> 
> 
> -----Original Message-----
> From: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
> AddAction New Media
> Sent: Sunday, December 09, 2001 4:37 AM
> To: interchange-users@interchange.redhat.com
> Subject: RE: [ic] Setting up SMTP, order e-mail sent to me but not to
> 'customer' BUG?
> 
> 
> Are your DNS records setup correctly? You might receive the "store" e-mail
> because it is the same server, but the "customer" e-mail might be misguided.
> Check your mail log.
> 
> Anton
> 
> -----Original Message-----
> From: interchange-users-admin@interchange.redhat.com
> [mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
> Christine Chaney
> Sent: Sunday, December 09, 2001 3:20 AM
> To: interchange-users@interchange.redhat.com
> Subject: [ic] Setting up SMTP, order e-mail sent to me but not to
> 'customer' BUG?
> 
> 
> 
> BTW, in response to previous posts (2 problems: e-mail log out etc..) I am
> not running on a red hat system...I am using a Solaris system hosted through
> viaverio (formerly iserver).  As such the first e-mail problem I have tried
> everything to uncover why sendmail will not work, and rooted out every
> conceivable cause.  None was found, so I'm thinking that it's just the
> virtual server environment.
> 
> After the fact I have set up SMTP and am now recieving orders to my orders
> box.  My customers box doesn't get any e-mails.
> 
> After finding no documentation on how to deactivate sendmail.  If you don't
> put anything it defaults.  I looked into the Util.pm (interchange/lib/Vend)
> file and I understand enough about whats happening, but don't know how to
> fix it or workaround it.
> 
> Search for SendMailProgram
> you'll find this line:
> 
> my $using = $Vend::Cfg->{SendMailProgram};
> 
> Following this line you'll see a check to see if SendMailProgram=none or
> Net::SMTP
> 
> Following this I set my Sendmailprogram variable in interchange.cfg to none
> , also tried Net::SMTP
> 
> Doing this I got the orders to seller e-mails working.
> 
> Why aren't the e-mails to customer working?
> 
> I noticed in the code in Util.pm following, still tried to send the
> customers message via sendmail thinking the path to sendmail was Net::SMTP
> or none instead of setting up a function to send it instead via SMTP.  While
> the orders to seller code didn't.
> 
> Bug?
> 
> Can anyone offer any help?
> 
> Christine
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                               cfm@maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux