Configuring PMG

Discussion in 'Mail Gateway: Installation and configuration' started by jose valdez, Oct 16, 2018.

  1. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    Hello gentlemen, I like to greet you. I was observing what was published on Proxmox Mail Gateway. I installed it under a virtual server interacting with the Zimbra and Endian server. What I want to do is just apply the spam rules on the outgoing emails from Zimbra, so that Proxmox Mail Gateway analyzes them and if the rules are passed out through the Endian firewall. But I do not see traffic on my PMG map, and I do not know if this happens to me because of a configuration error in the Proxmox Mail Gateway.

    The infrastructure is defined as follows:

    IP Zimbra email server: aaaaaaa (example)
    IP PMG: BBBBBB
    Endian IP firewall: CCCCCCCC


    And it is defined in the mail proxy configuration:

    Relay by default: aaaaaaa
    SMTp port: 25
    Smarthost: CCCCCCCC

    In the relay domain section, I included only the domain that the emails use.

    In the ports section, leave them like this:

    External SMTP port: 25
    Internal SMTP port: 26


    Please can you give me a light to see if I can terminal to implement the solution.

    Thank you
     
  2. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    281
    Likes Received:
    69
    Hi,

    you're in the german forum, so I'm afraid, your post is in the wrong thread. However, if you want outgoing mails been checked, you need to direct your Zimbra server to use bbbb at port 26 as relay host for outgoing mails and if they then should pass Endian as well, you need additional to set cccc at maybe port 25 as additional relay host on PMG. You setup looks a bit confusing based on your description above.

    So Zimbra => PMG:26 => Endian is what you want to do? Then you need to adjust Zimbra to forward to PMG and then PMG to forward to Endian.

    Regards,
    Christian
     
  3. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    Hi, thank you very much for your response, grateful. But I still have a doubt, in Proxmox Mail Gateway where I must perform the configuration so that the emails are delivered from PMG to the ENDIAN. Please, I would very much like to thank you for this clarification.
     
  4. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    Hi, thank you very much for your response, grateful. But I still have a doubt, in Proxmox Mail Gateway where I must perform the confiuration so that the emails are delivered from PMG to the ENDIAN. Please, I would very much like to thank you for this clarification.
     
  5. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    281
    Likes Received:
    69
    Hi,

    for sending mails from PMG to Endian (I believe outbound then, right?) you need to set the smarthost to Endians Mail Proxy.

    Regards,
    Christian
     
  6. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    [QUOTE = "heutger, post: 226045, miembro: 56237"] Hola,

    para enviar correos electrónicos de PMG a Endian (creo que salientes, ¿no?), debe configurar el smarthost en Endians Mail Proxy.

    Saludos,
    Cristiano [/ CITA]
     
  7. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    Thank you very much Cristiano for your clarification. But excuse my ignorance of PMG. I imagine that you recommended me to do it also must do it in PMG, right? This I configure in the SmarHost parameter located in the Relaying Mail Proxy section of the PMG?

    What value should I place in the Default Relay parameter and in the SMTP Port parameter located in the PMG Relaying Mail Proxy section?

    In Zimbra, I am placing the IP address of my PMG server with port 26 on the destination parameter of MTC, is this configuration OK? additional should I create an open relay in zimbra to send the outgoing emails to the PMG?
    Please your clarifications would help me confirm if I am configuring well the platforms involved.
    Thank
    Definiciones de thank
    Verbo
    express gratitude to (someone), especially by saying “Thank you”.
    Mac thanked her for the meal and left
    sinónimos: express (one's) gratitude to, express one's thanks to, offer/extend thanks to
     
  8. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    281
    Likes Received:
    69
    Yes, you need to configure smarthost in the GUI of PMG. You need to enter the IP or hostname of your Endian there, if I understood your setup correct.

    Sounds good, however, I have no experiences with Zimbra yet, I never worked with.

    You should not set an open relay in Zimbra, just use the option (should be similar), that Zimbra relays its mail via "smarthost" or however it's named there with the IP of PMG and the port 26.

    You may try out in a test installation, as I have no experience with Zimbra or Endian, I just can expect, what you need to set as all systems are somehow similar, but they are not the same.
     
  9. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    What value should I place in the Default Relay parameter and in the SMTP Port parameter located in the PMG Relaying Mail Proxy section?
     
  10. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    281
    Likes Received:
    69
    If I understood your setup correct, the IP of
    your Endian firewall (smtp module).
     
  11. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    Hello, first of all, thank you very much for the information provided. But I still do not see the Proxmox Mail Gateway working with the outgoing emails sent to them by Zimbra mail server.

    I inform you to apply your recommendations but I do not see traffic of outgoing emails in the PGM, I explain what I did:

    1.- In the MTA of the Zimbra mail server, place the IP of the PGM with port 26. The ip of the PGM is 172.100.172.20 and that of Zimbra is 172.100.172.25.

    2.- In the PGM network configuration and time set the IP of the PGM, sub network and gateway.

    3.- In the PGM section Mail Proxy Configuration configure them as follows:
    Default Relay Place the ip of the Endian Firewall

    SMTP Port: 25

    smarthost: none

    Relay Domain: ferrominera.gob.ve (Domain of the mails that go out from Zimbra)

    External Port: 25
    Internal Port: 26

    This was the configuration that you make so that only the outgoing emails that have the domain ferrominera.gob.ve pass through the PGM.

    With the changes I made now, I do not see any information in the PMG Tracking Center, but the statistics of the incoming and outgoing traffic of the network that are shown in the Server Administration section, but the mail does not go through the Endian firewall, despite the fact that have created the security rule.

    If I am armed with something of the configuration of the PGM that you specify, you can indicate it to me to make the corrections.

    I would appreciate your help.
     
  12. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    281
    Likes Received:
    69
    Hi,

    how was the setup before PMG on Zimbra? Did you check the logs?

    In Mail Proxy Relaying the default relay shouldn't be Endian, it should be Zimbra, you set where to relay incoming mails to (after spam check) (see admin guide and read the manual). For outgoing mails you need to set Endian IP and optional port (if not 25) at smarthost. Relay Domains is fine.

    So Internet => Endian => PMG => Zimbra - this last step (PMG => Zimbra) is done by the default relay setting (or if you want to set separate destinations, you need to use the Transports tab for each separate domain) meanwhile Zimbra => PMG => Endian => Internet - this last step (PMG => Endian) is done by smarthost setting (with optional port could be set, if different from 25).

    Regards,
    Christian
     
  13. jose valdez

    jose valdez New Member

    Joined:
    Oct 16, 2018
    Messages:
    9
    Likes Received:
    0
    Hello, thank you very much for your answer.

    I answer what you ask me:

    In Zimbra at the MTC level, the PMG IP was configured with port 26.

    PMG does not receive incoming emails since ENDIAN is configured to send these emails to Zimbra, after passing through another spam solution.

    On what you recommended me to configure the ENDIAN IP, you could please tell me in which PMG section I should do this.

    Thankful for your help.
     
  14. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    281
    Likes Received:
    69
    Hi,

    you should configure the Endian IP (if I understood your setup correct) as the smarthost in Configuration => Mail Proxy => Relaying => Smarthost.

    Regards,
    Christian
     
  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