Find the answer to your Linux question:
Results 1 to 3 of 3
Ok here's the thing I finly decided on Postfix for my MTA. So I set tryed to set it up via Webmin using this howto guide . Postfix is working ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Location
    Slovenia
    Posts
    79

    Postfix configuration problem


    Ok here's the thing I finly decided on Postfix for my MTA. So I set tryed to set it up via Webmin using this howto guide. Postfix is working and I can recive and send email via it, but I'm still not clear on a cuple of things. Curently as I understand it is working like this my user name is lets say "joe" and my domain si "something.com". So I enterd the domain into /etc/postfix/virtual like this:
    something.com localhost.localdomain.local
    and added this to /etc/aliases
    joe: joe@something.com
    and everything works ok any email sent to joe@something.com gets to my mail box.
    But I would like to have more than one domain set up. So I added the second domain "somethingelse.com" into /etc/postfix/virtual
    something.com localhost.localdomain.local
    somethingelse.com localhost.localdomain.local
    and added /etc/aliases
    joe: joe@something.com, joe@somethingelse.com
    This also works.
    But I can't seem to get info@something.com to be deliverd to user joe or joe.surname@something.com to get deliverd to user joe. And I would like to set up something lik this support@somethingelse.com to a user called jane.
    so I tryed to add these to the /etc/aliases
    joe: joe@something.com, joe@somethingelse.com, info@something.com
    jane: support@somethingelse.com
    But it doesn't work. I'm not sure what I'm doing wrong or if I understand everything. So if someone would be so good to give me some pointers on how I sould set Postfix up, so that I could use more domains, and any email(domethin@somedomain.com to user someone) to any user.
    I tryed via Webmin and via SSH to configure things.

    Thanks for the help..

  2. #2
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    Hey,

    I am new to postfix myself and I don't use webmin.
    I am not completly sure that I understand the problem either.
    There is no need to edit /etc/aliases.

    STEP 1
    Add the following to your main.cf file
    virtual_alias_domains = something.com, somethingelse.com
    virtual_alias_maps = hash:/etc/postfix/virtual

    Dont forget to do a postfix reload

    STEP 2
    In your virtual file add something like this

    joe@something.com joe
    joe@somethingelse.com joe
    support@somethingelse.com jane

    if you want a catch-all address add something like

    @something.com joe

    Don't forget to do a postmap virtual

    It might help to post your main.cf file (edited version as it is long by default) and some of your mail log

    Like I said, I am new to postfix but I replicated what you seem to be after
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

  3. #3
    Just Joined!
    Join Date
    Apr 2006
    Location
    Slovenia
    Posts
    79
    I actualy figured it out late last night. The exact procedure as you described but the diference I made was to the virtual file. I added
    info@something.com joe@something.com
    joe.surname@something.com joe@something.com
    support@something.com jane@somethingelse.com
    and it also works. So I think I've got the basic idea now.

    Thank you for your help.

Posting Permissions

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