LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-30-2009, 05:20 PM   #1
andrewfeberwee
Member
 
Registered: Feb 2007
Posts: 30

Rep: Reputation: 15
Mail relaying problem, cannout mail from outside network using outlook


Not sure which thread to put this in so I thought I would start here

OpenSUSE 10 Mail problem

I have OpenSuse running Sendmail and Cyrus and all works well but when I go to an external computer (Outside of my network) and try to connect Outlook to is I have the following issue:

I can read and receive all mail normally but when I try to send a message Outlook asks me to "Enter Network Password", this I do but is simply does not accept it. The mail log has the following message

Mar 30 15:59:52 hatchnet sendmail[9877]: n2U4xq98009877: 162.133-26-211.corp.syd.iprimus.net.au [211.26.133.162] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA


I can use Horde and Squirrel for send and receive without problems

I have the Checkbox "My outgoing server (SMPT) requires authentication" checked in the Outgoing server tab of more settings in the Outlook email account setup and I have tries "Use the same settings as my outgoing server" and "log on using" with my valid credentials.

Any ideas any, Ive been googling and mucking about with this for days now..

Oh, heres the sendmail.mc

divert(-1)
include(`/usr/share/sendmail/m4/cf.m4')
divert(0)
VERSIONID(`Sendmail Config for hatchnet 2008-05-03')
OSTYPE(`linux')
DOMAIN(`generic')
define(`ALIAS_FILE', `/etc/aliases')

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
define(`confMILTER_LOG_LEVEL',`1')
RELAY_DOMAIN_FILE(`/etc/mail/relay-domains')
FEATURE(`use_cw_file')
FEATURE(`relay_entire_domain')
FEATURE(masquerade_envelope)
FEATURE(local_procmail)
define(`confAUTH_OPTIONS', `A')
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confLOCAL_MAILER', `cyrusv2')
MAILER(smtp)
MAILER(procmail)
MAILER(local)
MAILER(`cyrusv2')
 
Old 03-30-2009, 05:42 PM   #2
MaxDeVill
LQ Newbie
 
Registered: Mar 2009
Distribution: Ubuntu Server 8.10
Posts: 3

Rep: Reputation: 0
How are you connecting to your server from the outside world?

Do you have a TLD that is routed to your server?

Does your ISP give you a static IP or dynamic?

Are you going through a router at the server location? Is it port forwarded for SMTP?

If you are using a dynamic IP address from your ISP, does your router assign a static IP address to your server?

I had the same issues using ubuntu 8.10+postfix+courier and after I set all the routing up properly it didn't give me any more problems.

Is there some reason that you can't just use your isp smtp?

Last edited by MaxDeVill; 03-30-2009 at 06:11 PM.
 
Old 03-30-2009, 06:26 PM   #3
andrewfeberwee
Member
 
Registered: Feb 2007
Posts: 30

Original Poster
Rep: Reputation: 15
I am trying to connect to my server using Outlook from a remote workstation

I run my own mail and web server with a static ip and want to relay mail for some colleagues as a favour as I am running mail for them already using squirrel (they want to use outlook, hence the problem)

Telnetting to port SMTP port 25 gives the following

telnet 60.229.255.190 25
Trying 60.229.255.190...
Connected to CPE-60-229-255-190.static.nsw.bigpond.net.au (60.229.255.190).
Escape character is '^]'.
220 hatchnet.hatchnet.com.au ESMTP Sendmail 8.14.1/8.14.1; Tue, 31 Mar 2009 10:20:31 +1100

Which kind of looks normal to me

telnetting to 143 gives

telnet 60.229.255.190 143
Trying 60.229.255.190...
Connected to CPE-60-229-255-190.static.nsw.bigpond.net.au (60.229.255.190).
Escape character is '^]'.
* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=DIGEST-MD5 SASL-IR] hatchnet Cyrus IMAP4 v2.3.8 server ready

Also okay i guess
 
Old 03-30-2009, 06:43 PM   #4
MaxDeVill
LQ Newbie
 
Registered: Mar 2009
Distribution: Ubuntu Server 8.10
Posts: 3

Rep: Reputation: 0
I don't know if its required anymore as I don't use sendmail much but I think you need to have to put the domains of the hosts that you want to be able to relay in your server in /etc/relay/mail-domains
 
Old 03-30-2009, 07:12 PM   #5
andrewfeberwee
Member
 
Registered: Feb 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Okay then, clearly it is a relaying problem because if i set

FEATURE(promiscuous_relay)

It works, clearly I can't have that in my config though. The user who is sending mail externally is not in my domain and I don't want to let his entire domain use me as a relay so I want him to authenticate his connection but when I do that, sendmail doesn't like it and gives the message already shown.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mail problem (Relaying denied) ice99 Linux - Networking 3 01-21-2006 11:29 AM
problem in mail through outlook alvi2 Linux - Networking 3 08-10-2005 04:39 AM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM
Redhat 9 Mail Relaying Problem clintonm9 Linux - Software 2 06-23-2003 02:54 PM
I can recieve mail (outlook) but i cant send mail hal_baumgardner Linux - Networking 4 07-13-2001 08:54 AM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration