Results 1 to 6 of 6

Thread: [SOLVED] Postfix configuration - mydestination

  1. #1
    Join Date
    Sep 2007
    Posts
    7
    Rep Power
    8

    Default [SOLVED] Postfix configuration - mydestination

    I'm trying to have an email redirect to a script. I've got another subdomain, rt.mydomain.com, and I think it's good to go, but i have to edit the Postix main.cf.

    At the moment
    mydestination = localhost
    but i need to change it to
    mydestination = localhost rt.mydomain.com

    I found the main.cf in: postfix-2.4.3.3z/conf/main.cf . However it seems that Zimbra is re-writing the file all the time, because when I restart postfix it reverts back.

    So I checked the documentation and found the zmlocalconfig program. So I changed it to this:
    postfix_mydestination = localhost rt.stcpl.com.au

    But still no good, the postfix main.cf is still reverting back to localhost only...

    Any help please :P

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    postconf -e postfix_mydestination = localhost rt.stcpl.com.au

  3. #3
    Join Date
    Sep 2007
    Posts
    7
    Rep Power
    8

    Default

    Quote Originally Posted by jholder View Post
    postconf -e postfix_mydestination = localhost rt.stcpl.com.au
    Thanks!
    postconf -e mydestination = localhost rt.stcpl.com.au

    Worked like a charm.

  4. #4
    Join Date
    Jul 2006
    Location
    Stuttgart / Germany
    Posts
    223
    Rep Power
    9

    Default

    Hi,

    Quote Originally Posted by johnblade View Post
    Thanks!
    postconf -e mydestination = localhost rt.stcpl.com.au

    Worked like a charm.
    In my ZCS 5.0.2 installation this is not working. It will write the new mydestination to main.cf but it is overwritten on server restart. I had to set:

    zmprov ms your.server.com zimbraMtaMyDestination 'localhost some.other.host'

    and zmmtactl stop/start

    Regards
    Thomas

  5. #5
    Join Date
    Apr 2013
    Location
    Italy
    Posts
    8
    Rep Power
    2

    Cool

    Quote Originally Posted by deepblue View Post
    Hi,



    In my ZCS 5.0.2 installation this is not working. It will write the new mydestination to main.cf but it is overwritten on server restart. I had to set:

    zmprov ms your.server.com zimbraMtaMyDestination 'localhost some.other.host'

    and zmmtactl stop/start

    Regards
    Thomas
    Uhm... This is not solved for ZCS 8.0.X
    right command for change zimbraMtaMyDestination are:
    Code:
    # become zimbra user
    su - zimbra
    # check the previous conf
    zmprov gacf | grep zimbraMtaMyDestination
    # change configuration
    zmprov mcf zimbraMtaMyDestination 'localhost new.example.com'
    # restart mta
    zmmtactl stop
    zmmtactl start
    # check new conf
    zmprov gacf | grep zimbraMtaMyDestination
    exit
    now is [SOLVED]

  6. #6
    Join Date
    Apr 2014
    Location
    Hyderabad
    Posts
    14
    Rep Power
    1

    Default

    zmprov mcf zimbraMtaMyDestination 'localhost new.example.com'

    It's Working thankq
    Regards,
    PraveenKumar.CH.

Similar Threads

  1. 5.0 RC1: admin interface: no statistics, no mail queue
    By christian.kieft in forum Administrators
    Replies: 1
    Last Post: 11-13-2007, 08:22 AM
  2. Replies: 3
    Last Post: 11-03-2007, 10:55 PM
  3. Replies: 9
    Last Post: 10-11-2007, 04:22 AM
  4. Replies: 2
    Last Post: 06-07-2007, 03:21 PM
  5. Postfix Configuration & Mailman
    By pbucher in forum Administrators
    Replies: 4
    Last Post: 10-09-2006, 08:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •