[dev] SMTP settings ignored

Luis Felipe Marzagao lfbm.andamentos at gmail.com
Tue Jan 1 22:11:17 UTC 2019


Em 01/01/2019 11:34, Sebastian Birnbach escreveu:
> Oh bummer, thanks a ton Luis. It's all there, properly documented and 
> all, just waiting for me to read it :-)
> Thanks for pointing me to the right place, you just made my day!
>

Great. I'm glad it helped.

Please, keep messages in the list so everybody knows the solution has 
worked, for future reference!

Happy new year.


> Have a happy new year :-)
>
>   Sebastian
>
> Am Mo., 31. Dez. 2018 um 19:37 Uhr schrieb Luis Felipe Marzagao 
> <lfbm.andamentos at gmail.com <mailto:lfbm.andamentos at gmail.com>>:
>
>
>     Em 31/12/2018 13:40, Sebastian Birnbach escreveu:
>     > I am setting up a new horde system from scratch. Horde
>     authentication is
>     > against an SQL database; imp uses the passed through credentials
>     on the
>     > IMAP server (doevecot), which checks it against the same SQL
>     database.
>     > Reason was that login will be possible as long as the SQL dab is
>     up, even
>     > if dovecot is down.
>     >
>     > I want users to supply fixed credentials to the SMPT server so I
>     set those
>     > in Configuration->Horde->Mailer:
>     > $conf[mailer][type] = SMTP
>     > $conf[mailer][params][host]
>     > and so on.
>     >
>     > I supplied username in $conf[mailer][params][username] and
>     password in
>     > $conf[mailer][params][password]. I also unchecked
>     > $conf[mailer][params][username_auth] and
>     > $conf[mailer][params][password_auth]. However, all users' SMTP
>     > authentications gets rejected every time.
>
>     This is the horde-wide SMTP configuration. Not always the same
>     configuration applies to IMP SMTP server.
>
>     If you want all IMP users to use the same login credentials from
>     horde's
>     SMTP, I think you should set the following inside
>     horde/imp/config/backends.local.php:
>
>     $servers['imap']['smtp']['horde_auth'] = true;
>
>     This option means all authenticated users will use the login
>     credentials
>     for smtp configured in horde-wide smtp configuration.
>
>      From imp/config/backends.php (take a look at the "NOTE" below):
>
>     * smtp: (array) SMTP configuration parameters.
>       *
>       *   For configuration parameters marked with a [*] below, the
>     Horde-wide SMTP
>       *   configuration is used by default.
>       *
>       *   If allowing access to external mail servers (e.g. Gmail),
>     you almost
>       *   certainly will want to override the defaults to specify the
>     foreign SMTP
>       *   server used to send messages from that given mail domain.
>       *
>       *   NOTE: By default, IMP will use the authentication
>     credentials used to
>       *   login to the current backend. To use the credentials
>     specified by the
>       *   Horde-wide SMTP configuration, 'horde_auth' must be true
>     (see below).
>       *
>       *   These configuration parameters are available:
>       *     - debug: (string) If set, enables SMTP debugging. See the
>     'debug'
>       *              parameter below (under the 'Debugging Properties'
>     header)
>       *              for acceptable values.
>       *     - horde_auth: (boolean) If true, populates the 'password' and
>       *                   'username' parameters with the authentication
>     credentials
>       *                   used by the Horde-wide SMTP configuration
>     (only if
>     those
>       *                   fields are not defined for this backend in IMP).
>     (...)
>
>
>     >
>     > For testing I configured an unencrypted connection to port 25 and
>     > tcpdump'ed the conversation. The credentials that get
>     transmitted are that
>     > of the user, not the configured ones. The username is sent without
>     > domainname, just as used for Horde login.
>     >
>     > Is there any setting that might keep imp from using the set
>     credentials for
>     > SMTP?
>     >
>     >    birnbacs
>     -- 
>     dev mailing list
>     Frequently Asked Questions: http://wiki.horde.org/FAQ
>     To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>     <mailto:dev-unsubscribe at lists.horde.org>
>


More information about the dev mailing list