I am programming a new webhosting control panel for CentOS 5.x and I am having one problem (it's the last problem, all the rest is working fine).
I don't know how to configure my Mail Delivery Agent (procmail), so that a mail send to email@example.com is saved in /home/example.com/mail and a mail send to firstname.lastname@example.org is saved in /home/newexample.com/mail.
At the moment I am using a second server with Red Hat Enterprise Linux Server release 5.1 with a similar configuration and on this server procmail is working fine.
How can I find the config-files of procmail there?
Are this procmails configs in a specific place or are they registered somewhere?
It would be great if someone could help me.
HTTP, FTP, POP, SMTP, sendmail, vsftp, bind, sendmail works fine. It's the last problem I have to solve.
If I send an email to a address on the new server, I receive a delivery failed notification:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
SMTP error from remote mail server after RCPT TO:<email@example.com>:
host mail.sw-cluster.com [184.108.40.206]: 554 5.7.1 <firstname.lastname@example.org>:
Relay access denied
This is what the maillog write after receiving an email:
Aug 19 18:37:47 server01 postfix/smtpd: connect from wp232.webpack.hosteurope.de[220.127.116.11]
Aug 19 18:37:47 server01 postfix/smtpd: NOQUEUE: reject: RCPT from wp232.webpack.hosteurope.de[18.104.22.168]: 554 5.7.1 <email@example.com>: Relay access denied; from=<firstname.lastname@example.org> to=<email@example.com> proto=ESMTP helo=<wp232.webpack.hosteurope.de>
Aug 19 18:37:47 server01 postfix/smtpd: disconnect from wp232.webpack.hosteurope.de[22.214.171.124]
I have searched hundreds of files, but I couldn't find the file where the email-addresses are configured.