Results 1 to 8 of 8
Are there any Sendmail Wizards available for some little help with settingup virtual hosting ?
For starters :
I'm looking for a way to distribute email for two local hosted ...
- 12-06-2004 #1
Any sendmail wizards on the forum?
Are there any Sendmail Wizards available for some little help with settingup virtual hosting ?
For starters :
I'm looking for a way to distribute email for two local hosted domains and a foreign domain.
I want to relay incomming email for the foreign domain to a different machine/IP.
But I'm unsuccessfull , tried virtual user and domain tables but to no avail.
Are the M4 rules followed in order ???
Or are they used independently ?
Any help would be greatly appreciated.
---[ MS09-99896 - Vulnerability in All MS Windows OS ; Using Windows Could Allow Remote Code Execution. ]---
Hardware: Asus P4P800, 1GB, P4-3Ghz, Asus V9950, Maxtor ATA HD\'s, 3Com GBit lan, Audigy ZS Plat.
- 12-06-2004 #2Just Joined!
- Join Date
- Dec 2004
- Posts
- 2
Sendmail
You didn't state which version of Linux you were attempting to use.
I personally had a difficult time getting sendmail to do whatever I wanted so I dropped it in favor of Postfix. And have never looked back. Postfix ships with most Linux distributions and last time I checked even installed on Redhat alongside sendmail only requiring that you run a script to change over.
Postfix is inherently more secure, and extensible. Virtual Hosting can be done with it via webmin, the web based GUI. Sendmail is very powerful, and thusly somewhat complex, and I quite frankly, don't have the time to master it, which made postfix even better, I haven't mastered it, but it's doing everything I wanted it to do.
PK
- 12-06-2004 #3Linux Enthusiast
- Join Date
- Jun 2002
- Location
- San Antonio
- Posts
- 621
The m4 rules are followed in order. The way I would do it is (based on a standard RedHat ES3 file layout):
edit /etc/mail/mailertable
and put something like:
where domain.com is the domain you want forwarded on, and 123.45.67.89 is the IP address of the other mail server. I am not positive if you need to have domain.com in your local-host-names file. I think you do, so the daemon knows whether to accept or reject the mail before processing "where it goes". You may have a mailertable.db file, so I would also runCode:domain.com esmtp:123.45.67.89
just in case. The other two domains can simply be put in local-host-names, and the mail will be accepted by sendmail.Code:cd /etc/mail && make
Best,
SamuelI respectfully decline the invitation to join your delusion.
- 12-07-2004 #4
Thanks Samuel,
I'll give it a try later today.
Think I'll give google another try too.
There is no need to, as the Linux versions are stated below my Avatar.
Originally Posted by pksings
There's no difference in Sendmail if you run it on Red Hat or Slackware.
Building a config file stays the same, as is it's layout.
---[ MS09-99896 - Vulnerability in All MS Windows OS ; Using Windows Could Allow Remote Code Execution. ]---
Hardware: Asus P4P800, 1GB, P4-3Ghz, Asus V9950, Maxtor ATA HD\'s, 3Com GBit lan, Audigy ZS Plat.
- 12-16-2004 #5
Okies, I'm stuck.
I have 2 domains:
DomainA.com and DomainB.com
DomainA needs local delivery, DomainB needs to be relayed to a internal IP
DomainB.com is not in my local domain list
it IS available in the mailertable.db for domain relaying, including forced IP address and the option: Ignore MX records.
This didn't work.
The DNS entries for both domains point to my system, so all mail is delivered there, but when I receive mail for DomainB it does a mail lookup and finds itself again .
The idea was/is that it should NOT lookup the mailer hostname but instead use the supplied IP for delivery.
Suggestions?
I've also tried using the Virtual User table forwarding all mail for domainB to address xxx.xxx..xxx.xxx
Didn't work either, it delivered just localy.
---[ MS09-99896 - Vulnerability in All MS Windows OS ; Using Windows Could Allow Remote Code Execution. ]---
Hardware: Asus P4P800, 1GB, P4-3Ghz, Asus V9950, Maxtor ATA HD\'s, 3Com GBit lan, Audigy ZS Plat.
- 12-18-2004 #6Linux Enthusiast
- Join Date
- Jun 2002
- Location
- San Antonio
- Posts
- 621
I think sendmail is kind of backwards on this. I think domainB.com may need to be in /etc/mail/local-host-names so that it resolves to local, then is passed to mailertable to be parsed, and sent back out to the external machine.
I am pretty sure I remember them doing this so sendmail can be a secondary mail server more easily. It makes more sense in that way to treat the mail locally first, since you are technically a mail server for the domain.
If that doesn't work, get back with me. I may need to actually play with it on a test machine of mine to get it to work
Best,
SamuelI respectfully decline the invitation to join your delusion.
- 12-21-2004 #7Just Joined!
- Join Date
- Oct 2004
- Posts
- 8
in mailer table
in etc/hosts fileCode:domainB.com ESMTP:internal-machine-name
in /etc/mail/relay_allowCode:internal-machine-name ip-of-that-machine
Code:domainA.com domainb.com internal-machine-ip
- 07-24-2005 #8Just Joined!
- Join Date
- Jun 2004
- Posts
- 78
What's the difference between "ESMTP:" vs. "SMTP:" ??
Originally Posted by aru510


Reply With Quote