Question re: default aliases & speci...

jrnichols
2012-09-21
2013-04-01
  • jrnichols

    jrnichols - 2012-09-21

    Two quick questions:

    1) The "default aliases" section. Since I'm often creating aliases for other domains, how can I change the array to automatically include the new domain I just added? IE if I am adding beer.com, and I click "Add default aliases," I would like it to automagically populate the domain name that I just added (beer.com) - is this possible?

    2)I'd also like to create a mailbox called "Junk" for each new user that is created. What's the best way to achieve this goal?

     
  • jrnichols

    jrnichols - 2012-09-23

    I can close #2, since i found that there's a dovecot plugin that does exactly what I want. Solved that one.

    Still not sure about #1 though.

     
  • RLeFever

    RLeFever - 2013-04-01

    fix postfixadmin default aliases

    Option 1

    In /etc/postfixadmin/config.inc.php

    Set default aliases to

    $CONF['default_aliases'] = array (
    'abuse' => '',
    'hostmaster' => '',
    'postmaster' => '',
    'webmaster' => ''
    );

    Modify /usr/share/postfixadmin/create-domain.php

    about line 131 find

    if ($fDefaultaliases == "on")
    {
    foreach ($CONF['default_aliases'] as $address=>$goto)
    {
    $address = $address . "@" . $fDomain;

    Add after

    Mod

    $goto = "postmaster@" . $fDomain;

    End Mod

    Results in all aliased to postmaster then once a real mailbox is created change postmaster alias to the real mailbox. Therefore only changing one alias.
    Option 2

    In /etc/postfixadmin/config.inc.php

    Set default aliases to

    $CONF['default_aliases'] = array (
    'abuse' => 'abuse',
    'hostmaster' => 'hostmaster',
    'postmaster' => 'postmaster',
    'webmaster' => 'webmaster'
    );

    Modify /usr/share/postfixadmin/create-domain.php

    about line 131 find

    if ($fDefaultaliases == "on")
    {
    foreach ($CONF['default_aliases'] as $address=>$goto)
    {
    $address = $address . "@" . $fDomain;

    Add after

    Mod

    $goto = $goto . "@" . $fDomain;

    End Mod

    Results in each address being aliases to itself. Once a real mailbox is created you have to edit each to get mail to a real mailbox.

    Hope this helps.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks