views:

27

answers:

1

Hi guys,

I have a requirement to accept all incoming emails into our server and process them through a script.

I will need some pointers as to what should be the required configuration.

This is the current main.cf :-

    myorigin = /etc/mailname

    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    myhostname = smtp.xyzxyzxyz.com
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    mydestination = xyzxyzxyz.com $myhostname localhost.$mydomain $myorigin
    relayhost =
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all

The aliases file is as follows:-

postmaster:    root,mailer_staging
mailer_staging: "|some command i am running"

I need that any email address like [email protected] for my domain xyzxyzxyz.com should be received by the server and processed by the alias mailer_staging. Currently only [email protected] works...any other email is rejected by the server.

Thanks in advance.

A: 

Add the alias *@example.com: mailer_staging to your /etc/aliases file, then run newaliases to update the alias DB.

Borealid
it gives a recipient address rejected error
Suman Mukherjee