Author Topic: Feature-Request: SMTP-auth for smarthost  (Read 3199 times)

drdebian

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Feature-Request: SMTP-auth for smarthost
« on: August 06, 2008, 10:54:54 am »
My smarthost requires SMTP-auth for accepting any mail, even from local LAN. It would be great if authentication info could be added to the smarthost entry somehow.

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Feature-Request: SMTP-auth for smarthost
« Reply #1 on: August 17, 2008, 09:41:20 pm »
Totally agree. We are working on it.

drdebian

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Feature-Request: SMTP-auth for smarthost
« Reply #2 on: September 01, 2008, 08:57:59 am »
Totally agree. We are working on it.

Is there any way to patch this into the current/next release? It's one of the few things holding me back from rolling out eBox in a lot of locations.

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Feature-Request: SMTP-auth for smarthost
« Reply #3 on: September 01, 2008, 10:46:23 am »
Ok, here we go, this is what you have to do if your relay host supports TLS:

Edit /usr/share/ebox/stubs/mail/main.cf.mas. Look for this line:

Code: [Select]
relayhost = <% $relay %>

Right after this line you must add:

Code: [Select]
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_pass
smtp_sasl_security_options = noanonymous

Now you have to create a file called:

Code: [Select]
/etc/postfix/smtp_pass

And its content must be:

Code: [Select]
yourelayhost user:password

Now you have to run the follwing command:

Code: [Select]
sudo postmap /etc/postfix/smtp_pass

Final step, restarting postfix:

Code: [Select]
sudo /etc/init.d/ebox postfix restart


drdebian

  • Zen Apprentice
  • *
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Feature-Request: SMTP-auth for smarthost
« Reply #4 on: September 01, 2008, 01:58:05 pm »
Thanks, I'll try that!

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Feature-Request: SMTP-auth for smarthost
« Reply #5 on: November 20, 2008, 09:59:49 am »
Now we  have  a branch in the repository wihich implements SMTP auth. This feature will be available in the near future