modifing DA to work with sendmail

apryan

Verified User
Joined
Aug 9, 2004
Messages
62
I'm going to attempt to get DA working with sendmail. I noticed all the exim stuff and it doesn't look too difficult. Just wondering if anyone here has done this before. Any ideas might be of assistance.

I actually prefer sendmail but I haven't given exim a try at all, so I'm not sure if it would be better to use exim. Right now I have a lot of dnsbl set up in sendmail which reduces a heck load of spam.

Thanks
 
Really, you shouldn't try to stick with Sendmail, let it go... ;)

Exim supports dnsbl as well, it's easy!
 
Correct. If its possible try converting your rbls to exim or use one of the ones around here :)
 
im thinking i might give it a try after doing some searching on here and finding what others are saying.

Thanks for the thoughts... I'll be brave and try it.
 
apryan, I'm not going to try to talk you out of sendmail.

I had used sendmail since somewhere in the mid 80s, and it took me a long time to make the decision to leave it.

Suffice it to say, leaving sendmail behind was one of the best decisions I've ever made.

Sendmail is bloated with code enabling it to work with mail methods that haven't been used in at least ten years, and by default accepts email for nonexistent users, and tries to bounce it later.

Additionally, sendmail does NOT allow you to whitelist single recipient domains and/or addresses from blocklists, which you can easily do with exim.

But the biggest problem I forsee in trying to get sendmail to work with DA is in using it with multiple virtual domains.

Are you planning on using virtusertable? Don't. It won't work, since DA allows the mailbox name at multiple domains, and virtusertable doesn't.

Have you another way of getting sendmail to accept email to non-users? They do exist, and you'll need one that works with the flat files that DA maintains, because DA does not set up system users for mailboxes.

Good luck. You'll need it.

And should you be successful, note that we do have a version of SpamBlocker for sendmail as well, as long as you don't mind hacking sendmail.cf (we support only manual changes to sendmail.cf; we do NOT support m4).

Jeff
 
if you get a second, could u email me your exim.conf and a sample of one of your domain folders (eg: /etc/virtual/$domain). That way I can set up my current domains with the way I have them now in sendmail. I'm trying to make the move as simple as possible.

By the way... do you know if the following sendmail settings can be replicated in the exim any where? perhaps their called something different ?

define(`confTO_ICONNECT', `10s')dnl
define(`confCOPY_ERRORS_TO', `Postmaster')dnl
define(`confTO_QUEUEWARN', `8h')dnl
define(`confMAX_HEADERS_LENGTH',16384)dnl
define(`confCONNECTION_RATE_THROTTLE',3)dnl
define(`confMAX_MIME_HEADER_LENGTH', `256/128')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
define(`confMAX_MESSAGE_SIZE', `25000000')dnl
define(`confQUEUE_LA', `4')dnl
define(`confREFUSE_LA', `6')dnl
define(`confMAX_DAEMON_CHILDREN', `10')dnl
define(`confMAX_RCPTS_PER_MESSAGE', `20')dnl
define(`confREJECT_MSG', `550 Go play with your self')dnl
define(`confSMTP_LOGIN_MSG', `$j $b')dnl
define(`confRECEIVED_HEADER', `$?sfrom $s $.by $j (TENTRIC) id $i; $b')dnl



Right now I need to find out how virtual aliases are added in exim. From what Ive read, you add a director to point to /etc/virtual/$domain/alias file but I don't know what the format is to add them, is it the same as
sendmail's user@virtdomain: user@realdomain ?



I already found dnsbl in exim, so wont need that info. But is there a way to add a 'reject' message for each dnsbl rule thats added (eg like sendmail allows)? Right now I have it set up like:

rbl_domains =
relays.mail-abuse.org:dnsbl.njabl.org:relays.ordb.org:sbl.spamhaus.org:
blackholes.wirehub.netpm.blitzed.org:dnsbl.sorbs.net
#all on one line.


Sorry for all the questions.. I've been doing some search on the web and finding some different things. I saw http://washitake.com/mail/exim/mirr...ure-annotated-2 and might be using some of their configuration rules but noticed its '3' not '4'. not sure if some of those variables are changed or not yet.

thanks in advanced.
 
apryan said:
if you get a second, could u email me your exim.conf
The SpamBlocker exim.conf file is available for viewing and download here.
and a sample of one of your domain folders (eg: /etc/virtual/$domain).
I'm not sure of what you mean. If you just set up a domain you'll have complete /etc/virtual/$domain folder. Can't you just do that yourself? Then you could test different possibilities, and see how they end up.
That way I can set up my current domains with the way I have them now in sendmail. I'm trying to make the move as simple as possible.
I'd say just create one of your domains through the DA interface, set up all the email features you want, and then look at the created directory. That should give you the information you need, and it should be closer to what you need than seeing one of my directories would be.
By the way... do you know if the following sendmail settings can be replicated in the exim any where? perhaps their called something different ?

define(`confTO_ICONNECT', `10s')dnl
define(`confCOPY_ERRORS_TO', `Postmaster')dnl
define(`confTO_QUEUEWARN', `8h')dnl
define(`confMAX_HEADERS_LENGTH',16384)dnl
define(`confCONNECTION_RATE_THROTTLE',3)dnl
define(`confMAX_MIME_HEADER_LENGTH', `256/128')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
define(`confMAX_MESSAGE_SIZE', `25000000')dnl
define(`confQUEUE_LA', `4')dnl
define(`confREFUSE_LA', `6')dnl
define(`confMAX_DAEMON_CHILDREN', `10')dnl
define(`confMAX_RCPTS_PER_MESSAGE', `20')dnl
define(`confREJECT_MSG', `550 Go play with your self')dnl
define(`confSMTP_LOGIN_MSG', `$j $b')dnl
define(`confRECEIVED_HEADER', `$?sfrom $s $.by $j (TENTRIC) id $i; $b')dnl
Perhaps someone else can; I have no experience with M4; I'm a sendmail.cf hacker.

The exim-users mailing list would probably be a great place to ask.
Right now I need to find out how virtual aliases are added in exim. From what Ive read, you add a director to point to /etc/virtual/$domain/alias file
If you're using DA, then DA does all of this for you.
but I don't know what the format is to add them, is it the same as
sendmail's user@virtdomain: user@realdomain ?
The exim.conf file designed by DA and later changed by me to include SpamBlocker, takes care of virtual domains for you. There's no equivalent of the virtusertable file because DA isn't using real system users. So you can have the same mailbox name for multiple domains.
[/quote]I already found dnsbl in exim, so wont need that info. But is there a way to add a 'reject' message for each dnsbl rule thats added (eg like sendmail allows)?[/quote]
Yes; follow what I've done in my exim.conf file but create a separate section for each RBL you want to have it's own message.

Jeff
 
The SpamBlocker exim.conf file is available for viewing and download here.

Great, thanks for supplying it.

I'm not sure of what you mean. If you just set up a domain you'll have complete /etc/virtual/$domain folder. Can't you just do that yourself? Then you could test different possibilities, and see how they end up.

Well, the main reason I wanted this was to get my main domains set up right away so the switch is smooth. I will not be adding my 'main' domains into directadmin's interface. I will only be hosting client domains through that. But yes, I could set up a temp domain to see how it works, just thought it would be easier to see the format and then set up mine real fast.

DA isn't using real system users

Really? Thats new news to me. I haven't actually started the directadmin program yet... Still ensuring everything is 'merged' over to using exim and proftpd before I begin.

In your exim.conf you mentioned that there needs to be modification to the exim? Was that just refering to the directorys and such, or does the actual program need to be modified? Obviously simple variables in exim.conf (example.com) were changed. Just making sure nothing else was needed outside of that.

is SpamBlocker an actual program or are u refering to Spam Assassin?

-anth
 
apryan said:
Well, the main reason I wanted this was to get my main domains set up right away so the switch is smooth. I will not be adding my 'main' domains into directadmin's interface. I will only be hosting client domains through that. But yes, I could set up a temp domain to see how it works, just thought it would be easier to see the format and then set up mine real fast.
But mine may not look anything like yours; for example, my domains may not use forwards, yours may. Etc.
Really? Thats new news to me. I haven't actually started the directadmin program yet... Still ensuring everything is 'merged' over to using exim and proftpd before I begin.
I'm not sure what you mean. DA is meant to be installed on a "new server" install. You can possibly get it to work on a server that already has sites, mail, etc., installed on it, but if you do you're entirely on your own.
In your exim.conf you mentioned that there needs to be modification to the exim? Was that just refering to the directorys and such, or does the actual program need to be modified? Obviously simple variables in exim.conf (example.com) were changed. Just making sure nothing else was needed outside of that.
The few files I've mentioned need to be added, and the example.com lines. That's about all I can think of now. I know I've fully documented it in my SpamBlocker exim.conf file.
is SpamBlocker an actual program or are u refering to Spam Assassin?
SpamBlocker is my name for my spam-blocking methodology and use of RBLs, implemented in my exim.conf file.

Jeff
 
I understand the fact that "DA is suppose to be installed on a new server install" but I am a very experienced unix admin, so I went a head and did the modifications to DA's install myself. Not a big issue at all. I was just asking to see how the format goes etc... but since you cant provide that, what ever. I'll find it from someone else. not a problem.

Thanks anyway.
 
/etc/virtual/domain/

and it contains:
aliases
autoresponder.conf
filterc
filter.conf
passwd
reply (directory)
vacation.conf

Then mail is stored in /home/username/mail
as files not as a directory structure and has links for the domain to its location in /var/spool/virtual

Example:
Code:
mydomain.com -> /var/spool/virtual/mydomain.com

Hope that helps
 
Back
Top