it's tough, cause you only wanna append if the email is text only, and not text/html multipart. Would probably be easiest if you had an online mailer. They're free to download, and you could restrict POP access to your server only, so people would have to check mail through your web interface...
Sendmail's got a maximum number of recipeints - you set it...i cant think of the param name right now...but, the best way to do this is in a script. Have a perl script BCC a message to 100 recipients, then wait 10 seconds, then check if /var/spool/mqueue is empty (the mail queue). if it's...
first, enter domain1.org and domain2.org in sendmail.cw (local domains). then enter each virtual user into the virtusertable.db database. the key is the incoming email address, and the value would be the location. the value can be an email address or local user's name
i'd really like to be able to set up a different .forward filename scheme. I know about the forwardPath var, but can't seem to figure out how to set it to what i want.
i want to host somedomain.com, and set it up so an incoming email address alias@somedomain.com.
basically i'd set up a...
i got my MX record to route *.mydomain.com emails to mydomain.com. this is so i can let people register my subdomains for their email accounts w/o my having to make any DNS entries for each person.
the problem is, when i tried it out, and sent an email to blake@blah.mydomain.com, it was...
I'm trying to do virtual email hosting without the virtusertable file getting too crazy. So, i was goin to try setting up one directory for each incoming email domain, and have a .forward there that would redirect the email to the proper local user.
for example, i'd like blake@mydomain.com to...
i switched over to IMAP. any other mailbox other than Inbox is stored in the user's home directory (or wherever you decide to set the mailbox dir).
php has an incredible imap library...makin life simple again...so nice.
sure, you can change the .cw file w/o restarting Sendmail.
you can't change the .cf file w/o that tho...you gotta restart in that case.
btw, with my script, i'm just goin to lock the file, then append to it...not goin to do any deleting. i trust my coding, but still don't wanna risk it, ya know?
i'm goin to have a perl script add to the temp cw file without my input. both will be active, but i'll move all the entries from the temp cw file to the main one. this way the most data i could lose as a result of the perl file is the work i haven't saved, still in the temp file.
btw, the...
thanks. i agree, my life would be much easier with qmail. but, i already paid the $50 for the O'Reilly Sendmail book, and i've learned enough so far to get by, and that sendmail is more powerful...so, i'll hang in there.
i ended up switching to IMAP instead of POP3. Sendmail doesnt handle...
i'm trying to move the location of the user mailboxes. anyone have any idea if this is possible? i'd rather break them down into subdirs, then have one huge directory of all my email users.
thanks
anybody know of a way to use multiple sendmail.cw files?
i really would like to have two, but sendmail.cf didn't seem to like that idea. perhaps is there a linux trick of symbolic link to two files? i doubt it, but that would be great!
thanks in advance,
blake.
well, there's a lot involved.
first you need to create a mail alias by editing /etc/alias:
some-mail-user: "| /Clifford"
this says that for any email that goes to some-mail-user, you send the entire contents as STDIN to the script /Clifford
where /Clifford is the script name (i...
anyone know how to create a subdomain? I've always just asked my server guy to do it, but now that i got my own server with root privs, i wonder if there's a file somewhere on the server that takes care of this? I really have no clue here, and exhausted from coming this far with sendmail. I'd...
M: Who we are masquerading as
w: The short name of this host
j: Official canonical name
R: The relay for unqualified names
H: The mail hub
good luck,
blake
i just did this like this:
1. add domain to accepted domains,
/etc/sendmail.cw
2. alias all emails from your domain to a certain user, say 'email-script-user'
/etc/mail/virtusertable:
@mydomain.com email-script-user
3. set up so all emails that go to email-script-user are sent to a perl...
you could route the email of certain users to a perl (or other) script, and let the perl script determine the size of STDIN. if the email is too big, you could then bounce it by printing an error message, then returning an error code. the error codes are standard. exiting with 0 is success...
did you check the server's mail queue? perhaps in /var/spool/mqueue
here's what you need for a virtual email alias:
1. add the domain to the list of accepted domains in /etc/sendmail.cw (probably)
2. set up the virtual user in /etc/mail/virtusertable (probably) like this...
the = signs are reminents of quoted-printable email encoding. it's used to limit the length of the email lines to 75 characters (or something like that). If you look at the email source, you should see somethin like this:
Content-Transfer-Encoding: quoted-printable
if that's there, then the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.