Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

.conf and wild card local_name

Discussion in 'E-mail Discussion' started by _steve_, Jun 18, 2007.

  1. _steve_

    _steve_ Registered

    Joined:
    Jun 18, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Hello,

    I am trying to set up a wildcard local_name - and I got it to work but I had to comment out a section... Here is what I changed in the directors section of the .conf file:

    All I did here is add the local_part_suffix lines (2 lines) right after the "driver=redirect":

    Code:
    virtual_aliases_nostar:
      driver = redirect
      local_part_suffix = -*
      local_part_suffix_optional
      allow_defer
      allow_fail
      data = ${if exists{/etc/valiases/$domain}{${lookup{$local_part@$domain}lsearch{/etc/valiases/$domain}}}}
      file_transport = address_file
      group = mail
      pipe_transport = virtual_address_pipe
      retry_use_local_part
      domains = lsearch;/etc/localdomains
      unseen
    
    It was working but I was also get a bounce because of this section so I commented it out:

    Code:
    #virtual_aliases:
    #  driver = redirect
    #  allow_defer
    #  allow_fail
    #  data = ${if exists{/etc/valiases/$domain}{${lookup{*}lsearch{/etc/valiases/$domain}}}}
    #  file_transport = address_file
    #  group = mail
    #  pipe_transport = virtual_address_pipe
    #  domains = lsearch;/etc/localdomains
    #  retry_use_local_part
    
    What is the purpose of the "virtual_aliases" section - am I setting myself up to miss something by commenting it out?

    UPDATE: Actually by commenting that out I still get a bounce message (even though the mail is delivered) after commenting that out the new bounce message is "Unrouteable address". Where and what else do I need to change in the Conf to get the desired effect?

    Ex:

    steve@domain.com is a mailbox
    steve@domain.com also has a forward to user@anotherdomain.com

    So:

    steve-tag@domain.com goes to the mailbox and gets forwarded

    BTW, I don't really use .forward files so I didn't play with those recipes - it doesn't seem that Cpanel creates the .forward files only the domain files in the /etc/valiases directory.

    Thanks,
    Steve

    Ref: http://bugzilla.cpanel.net/show_bug.cgi?id=5292
     
    #1 _steve_, Jun 18, 2007
    Last edited: Jun 18, 2007
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice