RE: removing Delivered-To header...?
Peter, I have a qmail server hosting several virtual domains, and all mail delivered to recipients in the virtual domains have a Delivered-To header line indicating the "main" domain name of the server. I want to delete this line, and I understand that the -d option to preline is the way to do this, but *where* do do do this? People at local-bapist-church.org wouldn't want hot-sex-pics.com in their mail headers. ;-) The easiest way is to ensure you have a 'Neutral' name for your "main" domain name of the server. If that's not possible... You could have parallel qmail installations on the same machine, i.e. one qmail per domain - using a different IP address (IP alias) per domain. Then you can tailor all the control files according to each domain. I'd be reluctant to mess with Delivered-To lines - not having them does have the potential to create mail loops. cheers, Andrew.
Re: removing Delivered-To header...?
Quoting Peter Cavender ([EMAIL PROTECTED]): haha - no, I just host several domains for third parties, and the people on domain3 ask why domain1 shows up in their mail headers... Just trying to make my mail services *completely* virtualized. People at local-bapist-church.org wouldn't want hot-sex-pics.com in their mail headers. ;-) Well, how would that be possible? Non-standard virtual domains set up? Example: You have mail.example.com as MX for virtual.com, which is in virtualdomains as "virtual.com:joe". In ~joe you have .qmail-joe. Mail sent to [EMAIL PROTECTED] will have a delivered-to header like so: Delivered-To: [EMAIL PROTECTED] Unless you have set up your virtualdomains in some way I'm not aware of, it should be irrelevent what other virtual domains you have configured. Maybe you can share this tidbit. We host quite a few virtualdomains, I must say, and don't have your particular problem. Doesn't the Received header also mention what your domain name is? Not an issue for me - I only have incoming POP boxes, no relaying. Well, did you hack qmail-smtpd.c to not add a Received header to the top of each message? How does email get delivered to your POP boxes from the Internet, if not via qmail-smtpd or some other SMTP daemon that follows RFCs? No delivery from via SMTP at all, maybe? Hmmm, but what program will you use to actually do the delivery? You don't mention what mailbox format you're using. Vanilla Maildir delivery on local machine. Maybe you just need to install procmail, get the maildir patches from www.qmail.org (are they still needed? I can't remember) and use formail to cut out that header (a la formail -I) from the user's .procmailrc. Again, though, I would caution against removing Delivered-To. Aaron
Re: removing Delivered-To header...?
Quoting Peter Cavender ([EMAIL PROTECTED]): Hi- I have a qmail server hosting several virtual domains, and all mail delivered to recipients in the virtual domains have a Delivered-To header line indicating the "main" domain name of the server. Fascinating. Is that a government secret, or something? haha - no, I just host several domains for third parties, and the people on domain3 ask why domain1 shows up in their mail headers... Just trying to make my mail services *completely* virtualized. People at local-bapist-church.org wouldn't want hot-sex-pics.com in their mail headers. ;-) Doesn't the Received header also mention what your domain name is? Not an issue for me - I only have incoming POP boxes, no relaying. I want to delete this line, and I understand that the -d option to preline is the way to do this, but *where* do do do this? Hmmm, but what program will you use to actually do the delivery? You don't mention what mailbox format you're using. Vanilla Maildir delivery on local machine. Anyway, Delivered-To is there to prevent mail loops. Not all that terrific an idea to cut them out. Hmmm... --Pete
Re: removing Delivered-To header...?
Quoting Peter Cavender ([EMAIL PROTECTED]): Hi- I have a qmail server hosting several virtual domains, and all mail delivered to recipients in the virtual domains have a Delivered-To header line indicating the "main" domain name of the server. Fascinating. Is that a government secret, or something? Doesn't the Received header also mention what your domain name is? I want to delete this line, and I understand that the -d option to preline is the way to do this, but *where* do do do this? Hmmm, but what program will you use to actually do the delivery? You don't mention what mailbox format you're using. Anyway, Delivered-To is there to prevent mail loops. Not all that terrific an idea to cut them out. Aaron