proxmox mail gateway integrate with post fix

Discussion in 'Mail Gateway: Installation and configuration' started by fayaz khan, Aug 3, 2018.

  1. fayaz khan

    fayaz khan New Member

    Joined:
    Jul 26, 2018
    Messages:
    11
    Likes Received:
    0
    hi team

    i am facing currently this issue can you pleas help me out this.

    Aug 2 17:17:17 cwp postfix/smtpd[12795]: connect from unknown[202.63.215.48] Aug 2 17:17:17 cwp postfix/smtpd[12795]: setting up TLS connection from unknown[202.63.215.48] Aug 2 17:17:19 cwp postfix/smtpd[12795]: Anonymous TLS connection established from unknown[202.63.215.48]: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits) Aug 2 17:17:20 cwp postfix/smtpd[12795]: 900C820081A: client=unknown[202.63.215.48], sasl_method=LOGIN, sasl_username=cubexs@weatherlycloud.com Aug 2 17:17:21 cwp postfix/cleanup[12807]: 900C820081A: message-id=<020201d42a5a$a33834e0$e9a89ea0$@weatherlycloud.com> Aug 2 17:17:21 cwp postfix/qmgr[12749]: 900C820081A: from=<cubexs@weatherlycloud.com>, size=2788, nrcpt=1 (queue active) Aug 2 17:17:22 cwp postfix/smtp[12755]: 900C820081A: to=<fayazlinux@gmail.com>, relay=proxmox.cubexs.net.pk[202.63.215.11]:25, delay=2.5, delays=1/0/1.2/0.26, dsn=4.7.1, status=deferred (host proxmox.cubexs.net.pk[202.63.215.11] said: 454 4.7.1 <fayazlinux@gmail.com>: Relay access denied (in reply to RCPT TO command)) Aug 2 17:17:24 cwp postfix/smtpd[12795]: disconnect from unknown[202.63.215.48]
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,277
    Likes Received:
    279
    I guess you sent outgoing mails to the wrong (external) port. You need to use the internal port instead.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. fayaz khan

    fayaz khan New Member

    Joined:
    Jul 26, 2018
    Messages:
    11
    Likes Received:
    0
    hi
    Thanks for you replying i am using outing port is 25 on outlook configuration as well proxmox .

    proxmox : mail proxy is SMTP Port is 25 check given pic . and also add this port on my actually email server.

    my internal server i add this line : i am using postfix
    relayhost = proxmox.cubexs.net.pk:25

    upload_2018-8-3_18-0-47.png
     
  4. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,277
    Likes Received:
    279
    You need to check the "Ports" panel instead.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. fayaz khan

    fayaz khan New Member

    Joined:
    Jul 26, 2018
    Messages:
    11
    Likes Received:
    0
    hi team

    i have two server one is proxmox and other one is my email serrver .i configure server like this .

    internal server :
    ############

    running postfix and i add it a entry in main.cf :

    relayhost = proxmox.cubexs.net.pk:25

    and in transport file i add this :

    weatherlycloud.com smtp:proxmox.cubexs.net.pk:25

    External server (proxmox server :
    ###########
    upload_2018-8-4_10-42-11.png

    upload_2018-8-4_10-42-31.png

    upload_2018-8-4_10-42-46.png

    upload_2018-8-4_10-43-0.png

    please suggested me now where i have to change .looking your good response.
     
  6. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,277
    Likes Received:
    279
    Form your internal mail server, you need to send outgoing mail to pmg port 26.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. fayaz khan

    fayaz khan New Member

    Joined:
    Jul 26, 2018
    Messages:
    11
    Likes Received:
    0
    hi

    thanks for you reply . when i change my internal mail server port from 25 to 26 its show error : please check and guide us for further.


    Aug 4 11:56:49 cwp postfix/smtpd[10693]: connect from unknown[202.63.215.48]
    Aug 4 11:56:50 cwp postfix/smtpd[10693]: 87083200545: client=unknown[202.63.215.48], sasl_method=LOGIN, sasl_username=cubexs@weatherlycloud.com
    Aug 4 11:56:51 cwp postfix/cleanup[10700]: 87083200545: message-id=<001a01d42bc0$347a1c00$9d6e5400$@weatherlycloud.com>
    Aug 4 11:56:51 cwp postfix/qmgr[10657]: 87083200545: from=<cubexs@weatherlycloud.com>, size=2680, nrcpt=1 (queue active)
    Aug 4 11:56:52 cwp postfix/smtp[10702]: 87083200545: to=<fayazlinux@gmail.com>, relay=proxmox.cubexs.net.pk[202.63.215.11]:26, delay=2.5, delays=0.97/0.05/1.2/0.29, dsn=4.3.0, status=deferred (host proxmox.cubexs.net.pk[202.63.215.11] said: 451 4.3.0 <fayazlinux@gmail.com>: Temporary lookup failure (in reply to RCPT TO command))
    Aug 4 11:56:54 cwp postfix/smtpd[10693]: disconnect from unknown[202.63.215.48]
     
  8. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,277
    Likes Received:
    279
    Please can you also send the logs from proxmox.cubexs.net.pl (maybe a DNS error there)?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. fayaz khan

    fayaz khan New Member

    Joined:
    Jul 26, 2018
    Messages:
    11
    Likes Received:
    0
    hi

    i am sending you two logs one is my internal server which is running postfix and another one is proxmox server logs . looking your good response.

    internal server maillogs.
    ###################

    Aug 6 10:06:39 cwp postfix/smtpd[32762]: connect from unknown[202.63.215.48]
    Aug 6 10:06:40 cwp postfix/smtpd[32762]: 8D86C2009D3: client=unknown[202.63.215.48], sasl_method=LOGIN, sasl_username=cubexs@weatherlycloud.com
    Aug 6 10:06:41 cwp postfix/cleanup[32766]: 8D86C2009D3: message-id=<002701d42d43$26c1a270$7444e750$@weatherlycloud.com>
    Aug 6 10:06:41 cwp postfix/qmgr[32692]: 8D86C2009D3: from=<cubexs@weatherlycloud.com>, size=2679, nrcpt=1 (queue active)
    Aug 6 10:06:42 cwp postfix/smtp[32716]: 8D86C2009D3: to=<fayazlinux@gmail.com>, relay=proxmox.cubexs.net.pk[202.63.215.11]:26, delay=2.5, delays=1/0/1.2/0.25, dsn=4.3.0, status=deferred (host proxmox.cubexs.net.pk[202.63.215.11] said: 451 4.3.0 <fayazlinux@gmail.com>: Temporary lookup failure (in reply to RCPT TO command))
    Aug 6 10:06:44 cwp postfix/smtpd[32762]: disconnect from unknown[202.63.215.48]



    Porxmox mail.log:
    ###############
    Aug 6 10:13:16 prosmox postfix/postscreen[86439]: CONNECT from [103.7.229.11]:49055 to [61.28.1.200]:25
    Aug 6 10:13:16 prosmox postfix/postscreen[86439]: warning: postscreen_access_list: non-null host address bits in "38.108.7.55/24", perhaps you should use "38.108.7.0/24" instead
    Aug 6 10:13:16 prosmox postfix/postscreen[86439]: warning: postscreen_access_list: permit_mynetworks: mynetworks lookup error -- ignoring the remainder of this access list
    Aug 6 10:13:16 prosmox postfix/postscreen[86439]: PASS OLD [103.7.229.11]:49055
    Aug 6 10:13:16 prosmox postfix/smtpd[88844]: connect from ns2.dmanet.co.id[103.7.229.11]
    Aug 6 10:13:16 prosmox postfix/smtpd[89088]: connect from cwp.weatherlycloud.com[38.108.7.51]
    Aug 6 10:13:16 prosmox postfix/smtpd[89088]: warning: smtpd_client_event_limit_exceptions: non-null host address bits in "38.108.7.55/24", perhaps you should use "38.108.7.0/24" instead
    Aug 6 10:13:17 prosmox postfix/smtpd[88844]: NOQUEUE: reject: RCPT from ns2.dmanet.co.id[103.7.229.11]: 454 4.7.1 <aone@cubexs.net.pk>: Relay access denied; from=<fbi@usa.net> to=<aone@cubexs.net.pk> proto=ESMTP helo=<mail.dmanet.co.id>
    Aug 6 10:13:17 prosmox postfix/smtpd[89088]: warning: mynetworks: non-null host address bits in "38.108.7.55/24", perhaps you should use "38.108.7.0/24" instead
    Aug 6 10:13:17 prosmox postfix/smtpd[89088]: NOQUEUE: reject: RCPT from cwp.weatherlycloud.com[38.108.7.51]: 451 4.3.0 <fayazlinux@gmail.com>: Temporary lookup failure; from=<cubexs@weatherlycloud.com> to=<fayazlinux@gmail.com> proto=ESMTP helo=<cwp.weatherlycloud.com>
    Aug 6 10:13:17 prosmox postfix/smtpd[89088]: warning: smtpd_client_event_limit_exceptions: non-null host address bits in "38.108.7.55/24", perhaps you should use "38.108.7.0/24" instead
     
  10. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,277
    Likes Received:
    279
    First, please fix the CIDR "38.108.7.55/24". Second, seems you still send to port 25 - you need to inject outgoing mails on port 26,

    Code:
    relayhost = proxmox.cubexs.net.pk:26
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. fayaz khan

    fayaz khan New Member

    Joined:
    Jul 26, 2018
    Messages:
    11
    Likes Received:
    0
    hi

    how can i fix it ??? . "First, please fix the CIDR "38.108.7.55/24"" i have already fix this ip in my internal server . ?? well i am using both port 25 and 26 for outing server .

    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 866/master
    tcp 0 0 0.0.0.0:26 0.0.0.0:* LISTEN 866/master
     
  12. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    328
    Likes Received:
    77
    Additional use this thread, not the release thread. Would be fine to delete your off topic posts there and confirm, I will then delete mine as well.
     
  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