IBM i Global

IBM i Global

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  SMTP local delivery - I do not want local delivery

    Posted 2 days ago

    We are suing a mail relay service.  for our domain.com

    In order for the mail relay to accept the mail the from address must be  MyName@domain.com , which works to send emails to outside domains well.

    the issue is the SMTP on the IBM i is marking any email to :  MyCoworker@domain.com Delivered to /QTCPTMM

    This never makes it to the Microsoft 365 server for distribution which is our mail provider.

    I have not found what setting I need to adjust to make this email be considered Outbound  not internal email server 

    thanks,



    ------------------------------
    Dean Dickison
    Deand@resoftware.net
    Terre Haute, IN
    ------------------------------


  • 2.  RE: SMTP local delivery - I do not want local delivery

    Posted 2 days ago

    Have you set following parameters...

    CHGSMTPA FWDHUBSVR('office 365 relay')  
             MAILROUTER('office 365 relay'
             FIREWALL(*YES)               



    ------------------------------
    Paul Nicolay
    ------------------------------



  • 3.  RE: SMTP local delivery - I do not want local delivery

    Posted 2 days ago
    Edited by Satid S 2 days ago

    >>>> This never makes it to the Microsoft 365 server for distribution which is our mail provider. <<<<

    I did a Google search with "ibm i smtp relay" and I found an IBM Technote that should address your issue here: Configuration of the IBM i SMTP Client to Relay Email to Office365 and Gmail at  https://www.ibm.com/support/pages/configuration-ibm-i-smtp-client-relay-email-office365-and-gmail.         

    And if you also use SMTP Authentication and TLS when connecting to a SMTP Relay, follow instruction in this IBM Technote: How To Configure the SMTP Client To Use SMTP Authentication with a SMTP Relay at https://www.ibm.com/support/pages/how-configure-smtp-client-use-smtp-authentication-smtp-relay.              



    ------------------------------
    Satid S
    ------------------------------



  • 4.  RE: SMTP local delivery - I do not want local delivery

    Posted 2 days ago

    If you read this post that's not the problem... sending out mails is working fine.

    His issue is that local mail (ie. internal people) doesn't leave his IBM i.



    ------------------------------
    Paul Nicolay
    ------------------------------



  • 5.  RE: SMTP local delivery - I do not want local delivery

    Posted 2 days ago
    Edited by Virgile VATIN 2 days ago

    H, 

    This may not be an IBM i problem. 
    As Satid pointed out in his post, if the configuration is correct then it could be a DNS problem.  Checked the smtp configuration on the IBM i side, there's quite a bit of configuration to do to use the office 365 servers as smtp relay (connector, microsoft SSL certificate registration in DCM).
    You'll also need to check the SPF records on the DNS side.

    If there are other authorized smtp servers on the local network, the easiest thing to do is to authorize one of these servers to relay IBM i mail and configure the IBM i to send mail to this relay.



    ------------------------------
    Virgile VATIN
    Head of IT Infrastructure
    DRP SOFTWARE
    Avelin
    ------------------------------



  • 6.  RE: SMTP local delivery - I do not want local delivery

    Posted 23 hours ago

    Hi,

    I bookmarked this useful article: https://www.ibm.com/support/pages/configuring-msfsmtp-ibm-i.



    ------------------------------
    Sylvain Manceau
    Blue
    ------------------------------



  • 7.  RE: SMTP local delivery - I do not want local delivery

    Posted 15 hours ago

    I had this issue recently and this is the setting that solved it for me:

    ADDENVVAR ENVVAR(QIBM_SMTP_FWDSVR_LCL_MAIL) VALUE('YES') LEVEL(*SYS)



    ------------------------------
    Matt Seeberger
    Power i Engineer
    CMA Technology Solutions
    ------------------------------