LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-29-2011, 01:31 AM   #1
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Rep: Reputation: Disabled
rt-mailgate works only in local email


Hello,

I'm using slackware 11.0.0. On that machine I have email server installed, on another server I have RT system. In email server in /home/vpopmail/rt I have script called rt-mailgate, and in /home/vpopmail/domains/mydomain/ I have those files:
.qmail-default
[
I think this one doesn't matter
]
.qmail-rt
[
|/home/vpopmail/rt/rt-mailgate --queue general --action correspond --url http://rt.myrt.lt/
]
.qmail-rt-comment
[
|/home/vpopmail/rt/rt-mailgate --queue general --action comment --url http://rt.myrt.lt/
]

The problem is, with local domains emails reach the system, but from other domains like gmail, yahoo and others it doesn't, those systems report back an error "email rt@mydomain.lt doesn't exist". It's actually true, it doesn't exist, when I run /usr/local/bin/make_mail_cdb in a list of registered emails that one doesn't appear, what should I do that other mail servers would be able to see that email?
 
Old 09-29-2011, 07:15 AM   #2
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Original Poster
Rep: Reputation: Disabled
Hey again,
I solved it myself.
Solution was, that I had to add alias in my email server and to avoid loop I had to create another route for mailgate, so what I did exactly was:
create 2 more files similar to .qmail-rt and .qmail-rt-comment, and i named them .qmail-rt2 .qmail-rt2-comment with exactly the same content, so at this point I have two mailgates to my rt system with rt@mydomain.lt and rt2@mydomain.lt. So as delivery was working localy perfectly, at this point I needed to let know remote hosts of that email address existance, so I went where I can add alliases and put:
rt@mydomain.lt -> rt2@mydomain.lt. As I've mentioned before it was necesarry to avoid loop, now when email comes from remote, it can see that there is an allias for rt@mydomain.lt and than server delivers message locally through second mailgate.

P.S. I don't believe it's a normal solution, it's just a workaround, if anyone knows a real issue how can I add my prefered address to the list provided for remote hosts, please let me know, thank U
 
  


Reply



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
Pipe email to extract attachments. Script works, but email sender receives an error! ceashton Linux - Server 4 01-08-2019 11:13 AM
DNSMasq - dnslookup build.domain.local works but ping build.domain.local doesnt mustaghattack Linux - Server 2 03-01-2010 09:00 PM
LXer: RT mailgate LXer Syndicated Linux News 0 08-17-2007 10:50 PM
local email Jim Deakin Linux - Newbie 1 01-30-2006 05:37 AM
Email works on local network but internet doesn't nixclueless Linux - Networking 1 07-06-2004 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration