postfix script execution in /etc/aliases fails

Discussion in 'Installation/Configuration' started by knobenheimer, Jun 14, 2010.

  1. knobenheimer

    knobenheimer New Member

    I followed the following virtual users and domains tutorial from how-to-forge:

    All the features work correctly, however, when I put a script execution assignment in my /etc/aliases it attempts to send the email to a user with the command name, instead of executing the command.

    For example, the following line in my /etc/aliases file:

    testing: "|exec flist testing" (where flist is symbolically linked in /etc/smrsh)

    Issues the following response in my /var/log/maillog:

    to=<|exec flist [email protected]>, orig_to=<[email protected]>, relay=virtual, delay=0.26, delays=0.24/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "|exec flist [email protected]")

    Any help is greatly appreciated.
  2. falko

    falko Super Moderator ISPConfig Developer

    Is flist an executable? If so, did you try
    testing: "|flist testing"

    Maybe you don't need the quotation marks?
  3. knobenheimer

    knobenheimer New Member

    Still no dice, I tried every variation I could think of, and it's still trying to interpret the executable command as a literal string.

    I have this working on another server. However, I'm in the middle of a migration to a newer machine and wanted virtual users/domains as described in the tutorial linked above (the older machine is sans those features).

    I've tried adding a transport to local delivery, as well as maildrop, and still nothing.

    For context, I'm trying to get SmartList working.
  4. knobenheimer

    knobenheimer New Member

    Okay, I got it to work. I had to add local transport designations for the mailing list addresses in my mysql transport table:

    [email protected] local:
    [email protected] local:

    In addition to adding actual mailboxes for the listing addresses (which wasn't necessary on my legacy machine).

    Hope this helps for anyone coupling SmartList to MySQL virtual domains/users.
  5. nishikado83

    nishikado83 New Member

    i dont understand to how to fill it

    i don't understand how you fill that ? can you tell me how you fill the databases ?
    I have the same problem now and i don't know what to do..
    Thanks before.

Share This Page