Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sendmail subdomain relays.

Posted on 2004-08-19
9
Medium Priority
?
735 Views
Last Modified: 2008-03-10
I'm looking for a way to deliver messages delivered to me by straight SMTP feed
and forward them to another SMTP server.

So for example I have :
domain.com   IN    MX          mail1.domain.com

So if you mail red15@domain.com my mail
does arrive. Now I wonder how I can tell sendmail
that any mail delivered which is addressed to
red15@sub.domain.com should be
forwarded to another SMTP server.

The really nasty thing is that this other SMTP
server is local address. So no MX record from
the outside is going to help me here.

I somehow need to teach sendmail his own MX
records. I've tried looking for it on Google but most
answers I got all pointed towards MX records.
Others where very nasty tricks involving redirecting.
0
Comment
Question by:Red15
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 15

Accepted Solution

by:
scampgb earned 2000 total points
ID: 11840072
Hi Red15,

You need to look at the MailerTables feature of Sendmail to do this.

Info at http://www.sendmail.org/m4/mailertables.html explains how.  It's not particularly in-depth, but should achieve what you need.

You'll essentially put the following line in your mailertable file:
sub.domain.com             smtp:[internalserver.whereever.org.]

I hope that this helps - let me know if you would like any clarification.

0
 
LVL 1

Author Comment

by:Red15
ID: 11840301
Hi thanks for your great answer which was very fast.
I'm just gonna go ahead and give you the points,
I guess I was just a little to quick.

But the sendmail.org site really scares me away. It's such a maze...
And besides, I did have some points over to waste :)

Have fun.
0
 
LVL 15

Expert Comment

by:scampgb
ID: 11840315
Hi - thanks for the "A", however I like to feel that I've earnt it! :-)

Which bit of it confuses you?

Do you use an M4 file to generate your sendmail config?  If you post it, I'll tell you what you need to do.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Red15
ID: 11840409
The general layout and the layout of sendmail itself is quite old and deprecated.
So confusing... Old day programming I guess...

Maybe I should pick up on qmail sometime.
0
 
LVL 15

Expert Comment

by:scampgb
ID: 11840528
:-)  How did you configure Sendmail in the first place?
It's fairly straightforward if you use the M4 method.  The idea of editing the sendmail.cf file directly leaves me cold!
0
 
LVL 1

Author Comment

by:Red15
ID: 11840592
Then start shivering :)

I have no time to waste on silly things like M4.

Most of the things I usually configure is just
Dj
DS
Mail filter

:) Actually I mostly copy sendmail.cf's from other running configurations and adjust as necessary.
0
 
LVL 15

Expert Comment

by:scampgb
ID: 11841019
:-)  In that case, I suggest that you find a nice working configuration that does what you want and copy it!

I can tell you how to do it with the M4 method, but editing the .cf directly is a little too scary for my liking.  I'd do it on my own configurations if pushed, but never on anyone elses!
0
 
LVL 1

Author Comment

by:Red15
ID: 11841346
I'm not sure about you, but I have to manage about 5 mailservers. And with people
complaining about harmless attachments getting swept by anti-virus, one tends to grab working configs.

But I did have one, all I needed to know was the fact that it is mailertable which does those subdomains.

Oh and you got that A mainly cause you reacted very fast.
Thx again
0
 
LVL 15

Expert Comment

by:scampgb
ID: 11842394
Cool - glad I could help :-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question