Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

smtp authentication does not work with outlook [solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
mariourk
l33t
l33t
User avatar
Posts: 807
Joined: Fri Jul 11, 2003 8:48 am
Location: Urk, Netherlands

smtp authentication does not work with outlook [solved]

  • Quote

Post by mariourk » Mon Jul 16, 2007 9:33 am

I have been following this howto to get smtp authentication working with Cyrus-sasl.
This allows me to send emails through my mailserver, even if I'm somewhere else.
The problem is that it doesn't work with outlook. Evolution and Thunderbird go fine,
but outlook refuses to authenticate. I configured the outgoing mail settings in outlook
the authenticate (using TLS) with the smtp-server. But when I try to send an email,
I get a relay access denied error, because outlook does not authenticate.

Does someone have experience with this (very strange) problem? :?
Last edited by mariourk on Mon Jul 23, 2007 12:52 pm, edited 1 time in total.
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Mon Jul 16, 2007 10:22 am

Might be worth breaking it down a bit. Can you just smtp-auth without the TLS?
Top
mariourk
l33t
l33t
User avatar
Posts: 807
Joined: Fri Jul 11, 2003 8:48 am
Location: Urk, Netherlands

  • Quote

Post by mariourk » Mon Jul 16, 2007 10:39 am

Without TLS, outlook still does't authenticate.
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Top
magic919
Advocate
Advocate
Posts: 2182
Joined: Fri Jun 17, 2005 7:31 am
Location: Berkshire, UK

  • Quote

Post by magic919 » Mon Jul 16, 2007 10:51 am

When you telnet to port 25 and give it an EHLO do you get all the smtp-auth options?
Top
schally
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Thu May 13, 2004 2:21 pm

Re: smtp authentication does not work with outlook

  • Quote

Post by schally » Mon Jul 16, 2007 11:38 am

mariourk wrote: ...because outlook does not authenticate...
why do you use outlook anyway when thunderbird is doing fine?
Our glory is not in never falling but in rising again every time we fall -Konfuzius

greetz
- schally
Top
mariourk
l33t
l33t
User avatar
Posts: 807
Joined: Fri Jul 11, 2003 8:48 am
Location: Urk, Netherlands

  • Quote

Post by mariourk » Mon Jul 16, 2007 12:35 pm

why do you use outlook anyway when thunderbird is doing fine?
Ah, that is a very good question :wink:

The server I'm referring to, is the mailserver of our company.
I'm using Evolution myself. And when I'm working in a windows environment
(sometimes it cannot be avoided... :( ) I use Thunderbird. So far , so good.
Unfortunately most of the users here, use Outlook for their email. In this case,
the laptop users, it's all of them, who use outlook. So...

If it was up to me, I would have abandoned windows a long time ago.
Unfortunately, this is easier said than done. :evil:
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Top
schally
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Thu May 13, 2004 2:21 pm

  • Quote

Post by schally » Mon Jul 16, 2007 12:56 pm

hm,... why you don't make the first step and bann outlock/outlook??
Our glory is not in never falling but in rising again every time we fall -Konfuzius

greetz
- schally
Top
elgato319
Guru
Guru
Posts: 546
Joined: Thu Sep 15, 2005 9:45 am

  • Quote

Post by elgato319 » Mon Jul 16, 2007 7:37 pm

main.cf:
debug_peer_level = 5
debug_peer_list = 10.x.x.x (ip from the outlook client)

if the outlook client connects again you should see more output in your logfiles.
Top
mariourk
l33t
l33t
User avatar
Posts: 807
Joined: Fri Jul 11, 2003 8:48 am
Location: Urk, Netherlands

  • Quote

Post by mariourk » Mon Jul 23, 2007 9:05 am

Sorry for the late respons, I've been busy this weekend.

I've used your advise to get some more detailed info from the logs.
There is a difference between outlook and Evolution. But I can't figure out
why there is a difference. Here is the output from the logs.

Download the logfile from outlook here
Download the logfile from Evolution here

I noticed a difference at the beginning of the logs

Outlook

Code: Select all

Jul 23 10:02:19 mail postfix/smtpd[32585]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250-STARTTLS
Jul 23 10:02:19 mail postfix/smtpd[32585]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250-ENHANCEDSTATUSCODES
Jul 23 10:02:19 mail postfix/smtpd[32585]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250-8BITMIME
Jul 23 10:02:19 mail postfix/smtpd[32585]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250 DSN
Jul 23 10:02:19 mail postfix/smtpd[32585]: watchdog_pat: 0x80cb610
Jul 23 10:02:19 mail postfix/smtpd[32585]: vstream_fflush_some: fd 18 flush 133
Jul 23 10:02:19 mail postfix/smtpd[32585]: vstream_buf_get_ready: fd 18 got 36
Jul 23 10:02:19 mail postfix/smtpd[32585]: < uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: MAIL FROM: <mario@famtennapel.com>
Evolution

Code: Select all

Jul 23 10:07:00 mail postfix/smtpd[32605]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250-STARTTLS
Jul 23 10:07:00 mail postfix/smtpd[32605]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250-ENHANCEDSTATUSCODES
Jul 23 10:07:00 mail postfix/smtpd[32605]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250-8BITMIME
Jul 23 10:07:00 mail postfix/smtpd[32605]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 250 DSN
Jul 23 10:07:00 mail postfix/smtpd[32605]: watchdog_pat: 0x80cb610
Jul 23 10:07:00 mail postfix/smtpd[32605]: vstream_fflush_some: fd 18 flush 133
Jul 23 10:07:00 mail postfix/smtpd[32605]: vstream_buf_get_ready: fd 18 got 10
Jul 23 10:07:00 mail postfix/smtpd[32605]: < uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: STARTTLS
Jul 23 10:07:00 mail postfix/smtpd[32605]: > uk-dd61.mxs.adsl.euronet.nl[81.68.251.97]: 220 2.0.0 Ready to start TLS
However, I couldn't figure out why there is a difference.
I hope someone can shed some light on this.
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Top
mariourk
l33t
l33t
User avatar
Posts: 807
Joined: Fri Jul 11, 2003 8:48 am
Location: Urk, Netherlands

  • Quote

Post by mariourk » Mon Jul 23, 2007 12:47 pm

I think I solved the problem. In outlook I had to enable to use SSL when contacting the SMTP-server.
I tried this before, but that led to another problem. The email returned with this error:

Code: Select all

504 5.5.2 <mario>: Helo command rejected: need fully-qualified hostname
It turned out this was caused by my postfix configuration in /etc/postfix/main.cf
I had to edit the smtpd_recipient_restrictions option and move permit_mynetworks and
permit_sasl_authenticated to the top of the list. (well, almost the top) It now looks like this:

Code: Select all

smtpd_recipient_restrictions =
   check_client_access hash:/etc/postfix/helo_client_exceptions,
   check_sender_access    hash:/etc/postfix/sender_checks,
   permit_mynetworks,
   permit_sasl_authenticated,
   reject_invalid_hostname,
   reject_non_fqdn_hostname,
   reject_non_fqdn_sender,
   reject_non_fqdn_recipient,
   reject_unknown_sender_domain,
   reject_unknown_recipient_domain,
   reject_unauth_destination,
   check_policy_service inet:127.0.0.1:10030
I hope this will help someone. :D
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Top
Mr.C.
n00b
n00b
Posts: 35
Joined: Sun Feb 25, 2007 1:42 am

  • Quote

Post by Mr.C. » Mon Jul 23, 2007 5:24 pm

Make sure that both files listed here:

Code: Select all

check_client_access hash:/etc/postfix/helo_client_exceptions,
check_sender_access    hash:/etc/postfix/sender_checks,
do *not* have OK results listed, or you have created an open relay.

MrC
Top
mariourk
l33t
l33t
User avatar
Posts: 807
Joined: Fri Jul 11, 2003 8:48 am
Location: Urk, Netherlands

  • Quote

Post by mariourk » Tue Jul 24, 2007 9:44 am

I will keep an eye on it. Thank you for pointing it out :D
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Top
Post Reply

12 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic