|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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:
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. |
|
#2
|
|||
|
|||
|
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;.. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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/ |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > Incoming mail with sendmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|