Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 16th, 2003, 03:46 PM
boardhigh boardhigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 43 boardhigh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 40 m 31 sec
Reputation Power: 5
Incoming mail with sendmail

Hi,

Im trying to execute a php script when an e-mail is sent to a specific address.

Im using a .forward file in my root directory which consists of the following:


PHP Code:
default|/home/user/web/mail.php 



This works fine , as soon as a mail is recieved, mail.php is executed.

What i now require is to be able to run the script only when a specific address is detected. Now doing some reading there seems to be a couple of ways you can do this, but i cant seem to get it to work.

I have tried:

test@mydomain.com|/home/hagan687/web/mail.php


test@mydomain.com,"|/home/hagan687/web/mail.php"

default|hagan687
script|/home/hagan687/web/mail.php


Has anyone got any suggestions on where im going wrong?

Many thanks,

Ben.

Reply With Quote
  #2  
Old May 20th, 2004, 06:54 AM
bauani bauani is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Bangladesh
Posts: 30 bauani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Arrow

Your are doing well with .forward, but if you need to to filtering on default email address based, you need to go for procmail. this is really a cool mail filtering system, comes with most *NIX system.

If you don't find one with your OS, try:

http://www.procmail.org/


Let's do it;..

Reply With Quote
  #3  
Old May 21st, 2004, 04:05 AM
ANAND SRIVASTAV ANAND SRIVASTAV is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 ANAND SRIVASTAV User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to solve message 'error: Failed dependencies'

Dear All

This may not be related directly to your interest, but I have a critical problem as described below:

I am new to LINUX, using REDHAT Linux 9.0. I have been assigned to install bugzilla, every thing is ready, but my send mail is not configured. When I try to do so using with rpm -Uvh db4-4.1.25-14.i386.rpm. it fails by following warning:

warning: db4-4.1.25-14.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
libdb-4.0.so is needed by (installed) python-2.2.2-26
libdb-4.0.so is needed by (installed) pam-0.75-48
libdb-4.0.so is needed by (installed) cyrus-sasl-2.1.10-4
libdb-4.0.so is needed by (installed) perl-5.8.0-88
libdb-4.0.so is needed by (installed) db4-utils-4.0.14-20
libdb-4.0.so is needed by (installed) openoffice-libs-1.0.2-4
libdb_cxx-4.0.so is needed by (installed) openoffice-libs-1.0.2-4
db4 = 4.0.14-20 is needed by (installed) db4-devel-4.0.14-20
db4 = 4.0.14-20 is needed by (installed) db4-utils-4.0.14-20

////////////////////////////////////////
I don’t know what to do at this point since I have libdb_cxx-4.0.so and libdb-4.0.so in my /lib folder. I have given the path as well.

If ant body has any idea to fix it. Please help or advice
Thanks in advance
Anand Srivastava

Reply With Quote
  #4  
Old May 21st, 2004, 01:24 PM
bauani bauani is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Bangladesh
Posts: 30 bauani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
If you want to install sendmail, why are you install/upgrading db4 rpm? Do any of your software told you to upgrade db4? Leave the db4, install sendmail.

Bauani
http://www.bauani.org/

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > Incoming mail with sendmail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT