Solved

Sendmail subdomain relays.

Posted on 2004-08-19
9
687 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
  • 5
  • 4
9 Comments
 
LVL 15

Accepted Solution

by:
scampgb earned 500 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
 
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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now