Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: anopesmtp  (Read 10773 times)

0 Members and 1 Guest are viewing this topic.

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
anopesmtp
« on: May 31, 2006, 10:52:41 AM »

well most networks have a hub of which the IP is unknown to the public, so during a possible ddos they wouldn't be able to attack the hub and thus disrupt the entire network by taking a single server offline.
I do the same, however there is a leak in the security... when you request a sendpass an email is send with sendmail, and the IP of the originating box can be found in the headers if that email.
chaz told me about anopesmtp and i replaced the sendmail line on my testnet with the following:
SendMailPath "anopesmtp 193.74.71.25"
where 193.74.71.25 is my isp's smtp server.
For this to work on my production network, there is an smtp relay setup on another box set to allow smtp traffic from my hub.

Problem is now that i can't even get it working on my testnet by simply specifying my isp's mailserver..
anyone who can help me out ?
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #1 on: May 31, 2006, 11:09:06 AM »

Having never used it in nix, I'm going to play with it now and see if i can make it work eh.
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #2 on: May 31, 2006, 11:19:59 AM »

Hi,

Specify the full path and it works... If you put a mailserver which doesn't exist (I used 1.2.3.4) it freezes anope so be careful :P

SendMailPath "/home/ircd/services/tools/anopesmtp 127.0.0.1"
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #3 on: May 31, 2006, 01:28:31 PM »

yep works now. sorta sucks that it s not a seperate thread though...
anope hangs for a sec or 2 when a mail is sent and i can imagine that if a mailserver is offline it would completely freeze ;(


edit: maybe there is another alternative for anopesmtp or sendmail that lets you specify the remote ip and port  ?

[Edited on 31-5-2006 by Viper]
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #4 on: May 31, 2006, 01:48:46 PM »

It might be an idea to set up a mailserver on the local machine set to forward the email to another server so that instead of holding anope up you only hold up the local mail server.
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
(No subject)
« Reply #5 on: May 31, 2006, 01:49:48 PM »

I'm about to set this up using a remote server and see if i can optimise it in any way or as Jobe suggests, create some form of forwarder.
Logged
Pages: [1]   Go Up