Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for some help 1

Status
Not open for further replies.

mdmbud

Technical User
Jan 30, 2004
3
US
I have sendmail on server. It currently uses 1 IP for all sites. I need it to use the IP of individual sites, when sending e-mail. How do I do this and would anyone want to be paid to do it? If so, hit me with an e-mail at spamfree@theprotrader.com, its on a UNIX box
 
If you only have one ip, there is no way to do this. There is a way to assign more than one ip to eth0 using ip aliasing or virtual ip addressing but this would be using local ip addresses and would not work for e-mail because the ip must public. If you can get a little more specific on what you are trying to do, maybe we can do things another way.
 
Sorry, each site added has its own IP. But sendmail is setup to only send using the servers main IP and not the sites actual IP - does that make sense?
 
I'm still not sure what you are asking. Are you saying you want the sites to send out mail like this: user@192.168.0.1? I have never heard of sendmail being setup to only send mail using ip addresses. Now you can ACCEPT, REJECT or RELAY based on a network or subnet using ip addresses in access.db. Here's an example:

123.45.67.89 RELAY
123.45 REJECT
yourdomain.com RELAY
otherdomain.com RELAY

In this example, the first guy is ok but anybody that has an ip where the first 2 octets match, will be rejected. You can also name domains specifically. You could also use a specific e-mail address. I'm more than likely just not getting what you want but if you talk real slow, I usually get it sooner or later. :)

 
well it sends out via domain, but the way they have the server setup, it appears (when looking at IP in mail) that the mail all comes from one IP - so this is issue. If we have 300 suers and one guy gets snagged for spam, they all will be effected
 
Yup, I know what you mean. Most hosting providers are very strict when it comes to their smtp accounts. They put severe limitations on the servers so this very thing can't happen. There are many things you can do to secure your mail servers. The best thing to do is to do a web search for some good "how-to" sites. In the mean time, here are just a couple things you can do. The first thing to do is make sure your server is NOT an open relay. You can use "smtp auth." or "pop-before-smtp". This way the sender must provide a valid user/password combo before mail can pass through your server. It is also a good thing to limit the amount of mail that one sender can pass through your server at one time. Most set this limit to 25 or so. Sites that use mailing lists for news letters and such usually don't have a problem with this limit since their list manager will send the mail out in smaller batches. What do you mean when you say the sites have their own ip? Is it public or private? Just wondering.
 
HI,,With your mail What I came to know that you are looking for some option where you can hide the server address through which all your mails are going so that other can't make that server as a prime goalof attack...

The best way is to do it other way...

Harden your server itself and then use the latest version of sendmail ver 8.12.10 and configure it with MILTER option..Install the latest patches...

Have a regular look on your server with the syslog messege and be ready before there is some strike...

Last but not the least as said by RhythemAce > see some how to sites ....

With best regards,
With U :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top