LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Help me configure Fakemail to start up as xinetd service... (https://www.linuxquestions.org/questions/linux-server-73/help-me-configure-fakemail-to-start-up-as-xinetd-service-895362/)

xtiansimon 08-03-2011 02:10 PM

Help me configure Fakemail to start up as xinetd service...
 
I found a way to capture emails sent from my Drupal installation, and Fakemail seems simple enough.

I can follow the tutorial. Since the application Fakemail needs to be running to capture the outgoing emails, it seems like a good candidate for xinetd, yes?

I've found a simple config tutorial describing starting the service and what the parameters are for the service-specific configuration files. This got me this far,

Code:

# default: on
# description: This is a script to start the Sandbox app "fakemail"
service fakemail
{
        #disable        = no
        #flags          = IPv6
        socket_type    = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/bin/fakemail.py
        server_args    = --host=localhost --port=10025 --path=/var/www/fakemail
        log_on_failure  += USERID
}

But the service is not starting up. Will someone help me with this config file?

Or, recommend another application which uses a similar configuration like Sendmail so I can copy this :)

The Fakemail application/service is started from command line like so,
# fakemail.py --host=localhost --port=10025 --path=[path_to_email_textfile]

bathory 08-03-2011 04:34 PM

Hi,

Uncomment
Quote:

#disable = no
and add:
Code:

port = 10025
restart the xinetd service and check

Regards


All times are GMT -5. The time now is 11:54 AM.