LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-16-2010, 03:44 AM   #1
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
Configure internal zimbra server to use external server to send mails?


Hello all,

I have got a running mail server on CentOS5.4 Final using Zimbra free edition. . Assume that domain is organization.com.local And it is running fine with users created and bugzilla running on the same machine can send mails using this server. But it can obviously send messages to the internal users.
There is this option to configure it to use external mail server to send mails outside the network but my external smtp server needs an authentication.
Is it possible to configure it this way to use my external server to send mails from internal domain to say gmail?
 
Old 02-17-2010, 12:27 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,906

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

Take a look at this howto.

Regards
 
1 members found this post helpful.
Old 02-17-2010, 12:36 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
I guess this is what I want. Will mark this thread Solved once I am done with the settings. Will once check and then see if this is what I want. I hope the same can be implemented for relaying without user name and password for SMTP authentication. I have both ways to implement at different locations with similar setup and same Zimbra community free edition.
 
Old 02-17-2010, 01:10 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
I am confused about the First setting where Relay host is set. The command is as follows:

Code:
zmprov ms server.domain.com zimbraMtaRelayHost external.relay.com:#
I do not understand what is the difference between server.domain.com and external.relay.com?

Is it like server.domain.com is cname? and external.relay.com is what I am going to use? Like in the example for Go Daddy it says: smtpout.secureserver.net resolves to smtp.starfieldtech.com.

So is it that in this case server.domain.com is actually smtp.starfieldtech.com and external.relay.com is smtpout.secureserver.net ?
 
Old 02-17-2010, 02:24 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,906

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Well, I don't use zimbra, but from what I've read, server.domain.com is your server (the one that's running zimbra) and external.relay.com is the server you want to use as a smarthost (like gmail in your case)
 
1 members found this post helpful.
Old 02-18-2010, 03:15 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
Well that seems fine. There is another issue I am stuck at. I need to configure getmail to use Zimbra mta to deliver the messages downloaded from the pop server. getmail is installed on the same machine as zimbra. I looked around the getmail documentation but I did not get how to configure external MTA to deliver the messages. And also I am not delivering it to some mailbox directory or anything. The mailbox is also going to be managed by zimbra itself.
Any clue on how to do this?
 
Old 02-18-2010, 04:09 AM   #7
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,906

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Well, as I told you I don't use zimbra and unfortunately neither use getmail
Anyways it looks from this that it can be done. As zimbra uses postfix as MDA, I guess you should use something like:
Code:
[Postfix]
type = MDA_external
path = /usr/sbin/sendmail
arguments = ("-i", "-bm", "user@domain.com")
unixfrom = true
B.R.
 
Old 02-18-2010, 05:46 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
Thanks bathory. Will give it a shot and come back.
 
Old 02-19-2010, 12:18 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
Well bathory, thanks for all the time you are putting up with me. I tried all that in the wiki for the external smtp configuration. But it does not work. So I looked around my zimbra server and found this in the message queue as deferred.

Code:
Host or domain name not found. Name service error for name=smtpout.where.secureserver.net  type=mx; host not found try again
I checked with nslookup and I can very well resolve the names and ip addresses.

This is what I get in nslookup

Code:
nslookup smtpout.secureserver.net
Server:		192.168.2.2
Address:	192.168.2.2#53

Non-authoritative answer:
smtpout.secureserver.net	canonical name = smtpout.where.secureserver.net.
Name:	smtpout.where.secureserver.net
Address: 72.167.82.80
 
Old 02-19-2010, 12:31 AM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,906

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

You cannot use godaddy as a smarthost, unless you're paying for it. In that case you should use the canonical name (smtpout.where.secureserver.net) and not the alias, as mentioned in the howto.

Regards
 
Old 02-19-2010, 01:02 AM   #11
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
We already have an account with go daddy. So that should not be an issue. I have user name and password for my domain hosted by go daddy. Any how that issue is no more to be seen. Another issue has creped in.
Now this is error that I see.

Code:
host
    smtpout.where.secureserver.net[72.167.82.80] said: 553 Sorry, that domain
    isn't in my list of allowed rcpthosts. (in reply to RCPT TO command)
 
Old 02-19-2010, 02:06 AM   #12
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,906

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

This is a qmail message meaning that even if your domain's MX record points to that server, the server itself (that is the qmail server) is not configured to accept mail for that domain.
Maybe you should contact godaddy and explain the situation.
 
Old 02-19-2010, 02:41 AM   #13
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
So only way is to talk to go daddy? Do they help? Some of the posts I read around said they really do not care much.
 
Old 02-19-2010, 03:10 AM   #14
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,906

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
What I cannot understand is why the smarthost replies with this message. I.e why it thinks it should deliver the email instead of forwarding it. Are you sure the settings in godaddy's control panel for your domain are correct?
Can you send mail to other domains, like gmail, yahoo and so on?
 
Old 02-19-2010, 04:04 AM   #15
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
I can not use the forwarding to send mails to any of the domains. There was a similar issue seen on the zimbra forums without any solution. Only solution given was to configure SMTP authentication which I already have done. I have configured my zimbra to use SMTP authentication while sending emails from go daddy server using my account.
But please remember that my zimbra server is part of our internal domain and not live though I have a live and static ip address.
 
  


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
Can't send mails from Linux Server to Windows200 Server...plz help me out..... Vicksss Linux - Server 1 07-29-2009 03:42 AM
Switching to google mail want internal server to send now points to external Eileen1 Linux - Newbie 1 03-25-2009 11:07 PM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM
using external mail server with internal web server blckspder Linux - Server 1 01-07-2008 08:31 PM
mail server: just send mails out, but not receive hamish Linux - Software 4 02-27-2005 11:06 AM


All times are GMT -5. The time now is 10:24 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