postfix - getting started

Discussion in 'Site & Server Administration' started by martinvidic, Jan 30, 2012.

  1. #1
    Hi.

    I got almost everything running on my new server; proftpd, bind, php and phpmyadmin etc.
    Now the next problem is postfix 2.6.6

    For now I'm using a very simple redirect.

    I added this to main.cf
    virtual_alias_domains = mydomain.com
    virtual_alias_maps = hash:/etc/postfix/virtual

    and this to virtual

    @mydomain.com

    Is there anything else i have to do?
    Because postfix is running, but i think my email doesnt even reach postfix.
    I also tried creating an A record and a MX record for mail.mydomain.com

    Help would be much appreciated :)
    Thanx
    martin
     
    martinvidic, Jan 30, 2012 IP
  2. martinvidic

    martinvidic Guest

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could it be my firewall?

    Because when i telnet myIpAddress 25, i get this

    telnet: connect to address XX.XX.XX.XXX: Connection refused
    telnet: Unable to connect to remote host

    I'm on centOs 6.2 and all i have in my firewall settings i only have this

    # Generated by iptables-save v1.4.7 on Mon Jan 23 13:43:54 2012
    *filter
    :INPUT ACCEPT [267:20951]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [251:23840]
    -A INPUT -d 127.0.0.1/32 -p tcp -m tcp --sport 1024:65535 --dport 953 -m state --state NEW,ESTABLISHED -j ACCEPT 
    COMMIT
    # Completed on Mon Jan 23 13:43:54 2012
    # Generated by iptables-save v1.4.7 on Mon Jan 23 13:43:54 2012
    *mangle
    :PREROUTING ACCEPT [22310:1910799]
    :INPUT ACCEPT [21420:1821360]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [19832:3026581]
    :POSTROUTING ACCEPT [19832:3026581]
    COMMIT
    # Completed on Mon Jan 23 13:43:54 2012
    # Generated by iptables-save v1.4.7 on Mon Jan 23 13:43:54 2012
    *nat
    :PREROUTING ACCEPT [18072:1253709]
    :POSTROUTING ACCEPT [11:680]
    :OUTPUT ACCEPT [11:680]
    COMMIT
    # Completed on Mon Jan 23 13:43:54 2012
    Code (markup):
     
    martinvidic, Jan 31, 2012 IP
  3. supportex

    supportex Peon

    Messages:
    66
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #3
    If you need manage virtual domain i Postfix the better and easy way is postfixadmin. It's saves you from many of the problems with virtual users and domains.
     
    supportex, Jan 31, 2012 IP