Windows»Email installation for Windows»SMTP Authentication
  • RSS Feed

Last modified on 1/6/2015 7:36 AM by User.

Tags:

SMTP Authentication

Email servers will not normally relay Profits Plus emails without proper credentials.  This is to prevent spamming.  The credentials are the username and password of a valid email user in that domain.  Not all email servers have the same requirements for authenticating credentials.  Here are the conditions that Profits Plus can handle, and how to setup for them.

Condition   Description

1 password for all relaying

 

This is the "normal" way email servers have behaved.  The same password and username will be accepted for authentication for relaying emails from all users.  We store the authenticating username and password in the sco/bin/email.conf on unix servers and win32/bin/blat_opt.txt on windows servers and we don't need email passwords for every user.

 

  Setup: The following  parameters should be null.
   

A/R ageprm.ini: ESTM'EML'USER, ESTM'EML'PASS

   

O/E oecust.ini: EDELIVERY'EML'USER, EDELIVERY'EML'PASS

   

S/M task "22. System printers":   None of the email printers spool commands should contain the tokens EMAIL.USER and EMAIL.PASSWORD

   

S/M task "32/22/1. S/M General" INI'SMTP'RULES character 1 is blank.

All users authenticate their own emails.  
This is a new phenomenon of some "free" hosted email servers.  gmail.com and microsoftonline.com in particular.   The username and password used for authentication must be ones that belong to the sender's email account.  One password doesn't work for everybody.   We have to add extra .ini parameters and printer spool command tokens to make this happen.
    Setup: The following parameters should look like this.
   

A/R ageprm.ini: ESTM'EML'USER=       ESTM'EML'PASS=password

   

O/E oecust.ini: EDELIVERY'EML'USER=   EDELIVERY'EML'PASS=password

   

S/M task "22. System printers":   All of the email printers spool commands should contain the token EMAIL.PASSWORD.  This includes the background email printers for e-delivery EMBDLI and EMBDLS.  For example:

mvmail -s"%(SUBJECT)%" -t%(EMAIL.TO)% -f%(EMAIL.FROM)% -i%(EMAIL.PASSWORD)% -p%(PRINTFILE.PDF)% -c"%(COMPANY.NAME)%"

   

S/M task "32/22/1. S/M General" INI'SMTP'RULES character 1 is blank.

   

win32\bin\blat_opt.txt should not have the -u or -pw arguments.

 

All users must authenticate their own emails but the mail server does not want the @domain suffix for the authenticating username. 

 
This is unusual.  The "from" address is john@domain.com but the authenticating username must be just john.   Our own email server mail.mvsoftware.com behaves this way.    In this case we need to use all of the setup for passwords above but also add additional parameters and tokens for the unique authenticating username as well.
    Setup: Keep the password parms and tokens above and add the following ones.
   

A/R ageprm.ini: ESTM'EML'USER=john

   

O/E oecust.ini: EDELIVERY'EML'USER=john 

   

S/M task "22. System printers":   All of the email printers spool commands should contain the token EMAIL.USER.  This includes the background email printers for e-delivery EMBDLI and EMBDLS.  For example:

mvmail -s"%(SUBJECT)%" -t%(EMAIL.TO)% -f%(EMAIL.FROM)% -u%(EMAIL.USER)% -i%(EMAIL.PASSWORD)% -p%(PRINTFILE.PDF)% -c"%(COMPANY.NAME)%"

   

S/M task "32/22/1. S/M General" INI'SMTP'RULES character 1 is Y.

   

win32\bin\blat_opt.txt should not have the -u or -pw arguments.