Re: postfix/virtual and dovecot/deliver

2008-10-01 Thread Mark Watts
On Wednesday 01 October 2008 00:28:37 Stephen Holmes wrote: Wietse Venema wrote If root can do cat /etc/postfix/mysql/virtual-mailbox-maps.cf but the Postfix virtual delivery agent running as root can open the file, then you have something that interferes with file system access, like

Re: postfix/virtual and dovecot/deliver

2008-10-01 Thread mouss
Mark Watts wrote: You said earlier that you were running CentOS 5.2. As per a standard install, SELinux defaults to ON. for this particular problem, he is using Suse (see the Problem with virtual mailboxes short thread) and he said Apparmor isn't installed. [snip]

Re: trivial-rewrite regular expression substitution

2008-10-01 Thread Wietse Venema
David DeFranco: According to the man page I can't do regular expression substitution in transport maps with Postfix 2.3 or later. The trivial-rewrite(8) server disallows regular expression substitution of $1 etc. in regular expression lookup tables, because that could open a security

Re: trivial-rewrite regular expression substitution

2008-10-01 Thread Wietse Venema
David DeFranco: I need data that's in the user part of the address to determine the nexthop. With regexp substitution, this would give giving random users control over destination host names, host addresses, and TCP ports. Instead of using (regexp) to grab the nexthop from the recipient

Re: How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-10-01 Thread Wietse Venema
rc: Fixing the mail requires headers like: MIME-Version: 1.0 Content-type: text/plain Content-transer-encoding: 8bit Wietse It is working now. I fixed the header externally with formail (can't Postfix do that without external help?) It's the job of MUAs, mail

RE: Aliases Lookups, not found? Then Smarthost

2008-10-01 Thread wiskbroom
Many thanks for the help mouss, and my apologies for my hiatus... As per my email, I am using NIS and DBM aliases foor all of my users and aliases for them. What I must do is forward *ALL* email for say example.net to a Microsoft Exchange server, this forward to happen blindly and I do not

valid_hostname chokes on trailing dot

2008-10-01 Thread Chad Whitacre
Greetings, In src/util/valid_hostname.c (version 2.5.5), valid_hostname gives a misplaced delimiter warning if the hostname ends in a trailing dot. Since a trailing dot is technically part of a FQDN, I suggest that valid_hostname allow them. Patch attached. chad P.S. New to postfix,

Re: How to send 7bit mail to certain users when mime headers are missing (are missing headers the problem?)

2008-10-01 Thread mouss
rc wrote: Fixing the mail requires headers like: MIME-Version: 1.0 Content-type: text/plain Content-transer-encoding: 8bit Wietse It is working now. I fixed the header externally with formail (can't Postfix do that without external help?) what _you_ mean and what _I_ mean are

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Wietse Venema
Chad Whitacre: Greetings, In src/util/valid_hostname.c (version 2.5.5), valid_hostname gives a misplaced delimiter warning if the hostname ends in a trailing dot. Since a trailing dot is technically part of a FQDN, I suggest that valid_hostname allow them. Patch attached. Please cite

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Chad Whitacre
Happy to if you point me to it. I'm not an expert. chad Wietse Venema wrote: Chad Whitacre: Greetings, In src/util/valid_hostname.c (version 2.5.5), valid_hostname gives a misplaced delimiter warning if the hostname ends in a trailing dot. Since a trailing dot is technically part of a

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Chad Whitacre
Please cite the relevant section of the relevant RFC. Happy to if you point me to it. I'm not an expert. Is this the right place? https://tools.ietf.org/html/rfc5321#section-2.3.5 chad

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread John Peach
On Wed, 01 Oct 2008 12:40:57 -0400 Chad Whitacre [EMAIL PROTECTED] wrote: Please cite the relevant section of the relevant RFC. Happy to if you point me to it. I'm not an expert. Is this the right place? https://tools.ietf.org/html/rfc5321#section-2.3.5 If it is, it does not

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Chad Whitacre
John, If it is, it does not back up your assertion that a trailing dot is part of the FQDN. Right, I stopped asserting that when Wietse and Noel told me that FQDN means something different for SMTP than for DNS. The question (I thought) was what to point to from Wikipedia. chad John

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Wietse Venema
Chad Whitacre: Is this the right place? https://tools.ietf.org/html/rfc5321#section-2.3.5 Does the text say SEPARATED by dots or TERMINATED by dot? Wietse

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Chad Whitacre
Wietse, Sorry, that is backwards. If you want to correct Postfix behavior, then you need to provide supporting documentation that Postfix is in error. So please point out the relevant sections of email related RFCs, otherwise I suggest that you refrain from posting corrections. We've

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Noel Jones
Chad Whitacre wrote: Wietse, Sorry, that is backwards. If you want to correct Postfix behavior, then you need to provide supporting documentation that Postfix is in error. So please point out the relevant sections of email related RFCs, otherwise I suggest that you refrain from

Re: Aliases Lookups, not found? Then Smarthost

2008-10-01 Thread Victor Duchovni
On Wed, Oct 01, 2008 at 11:31:32AM -0400, [EMAIL PROTECTED] wrote: Many thanks for the help mouss, and my apologies for my hiatus... As per my email, I am using NIS and DBM aliases foor all of my users and aliases for them. What I must do is forward *ALL* email for say example.net to a

Re: valid_hostname chokes on trailing dot

2008-10-01 Thread Noel Jones
mouss wrote: Noel Jones wrote: Welcome to postfix! Valid hostnames in mail are not the same as valid DNS hostnames. Mail hostnames never end with a dot. Does DNS even define a hostname? My understanding is that this is a natural term, not a technically defined one (after all, on many

catch all taking emails of valid email accounts

2008-10-01 Thread Chris St Denis
I have some email addresses defined (example.com of course is not the real domain) [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] and a catch all to [EMAIL PROTECTED] when an email is sent to an address like [EMAIL PROTECTED] it gets sent to [EMAIL PROTECTED] Oct

Re: catch all taking emails of valid email accounts

2008-10-01 Thread mouss
Chris St Denis wrote: I have some email addresses defined (example.com of course is not the real domain) [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] and a catch all to [EMAIL PROTECTED] when an email is sent to an address like [EMAIL PROTECTED] it gets sent to

Re: trivial-rewrite regular expression substitution

2008-10-01 Thread David DeFranco
Thanks for the answers. This is an internal mail server for system generated mail, and I'm re-writing the address before determining the transport so there's sanity checking already in place. I would never consider this kind of setup on a user/internet relay server. Heck, I wouldn't consider

Re: catch all taking emails of valid email accounts

2008-10-01 Thread Victor Duchovni
On Wed, Oct 01, 2008 at 09:35:04PM +0200, mouss wrote: query = select %s from yourvirtualmailboxtable where '%s' = email The first %s should probably also be in quotes or better yet, use the field name: query = select '%s' from yourvirtualmailboxtable where '%s' = email query = select

Re: catch all taking emails of valid email accounts

2008-10-01 Thread mouss
Victor Duchovni wrote: On Wed, Oct 01, 2008 at 09:35:04PM +0200, mouss wrote: query = select %s from yourvirtualmailboxtable where '%s' = email The first %s should probably also be in quotes or better yet, use the field name: query = select '%s' from yourvirtualmailboxtable where '%s' =

Manipulate RPCT from an specified SENDER.

2008-10-01 Thread Francisco Ruiz
Hi all, This is my first message here so please tell me if i'm doing something wrong or perhaps what I'm asking has been already resolved. I have two servers running postfix. A just sends mails while B acts as a relay host for it. A -- B -- INTERNET What i'm looking for is to rewrite the

Re: trivial-rewrite regular expression substitution

2008-10-01 Thread Wietse Venema
Wietse: Instead of using (regexp) to grab the nexthop from the recipient localpart or domain part, specify the string explicitly. /..(regexp)../ ..$1.. /..whatever../ ..whatever.. Repeat this for each such domain. David DeFranco: Thanks for the

Re: Manipulate RPCT from an specified SENDER.

2008-10-01 Thread Noel Jones
Francisco Ruiz wrote: Hi all, This is my first message here so please tell me if i'm doing something wrong or perhaps what I'm asking has been already resolved. I have two servers running postfix. *A* just sends mails while *B* acts as a relay host for it. *A -- B -- INTERNET* What i'm

Re: Manipulate RPCT from an specified SENDER.

2008-10-01 Thread Francisco Ruiz
Noel, Thanks in advance. A few seconds after sending the prior mail, i found that info =). So what i did was: in main.cf: smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access in /etc/postfix/access: source@ REDIRECT destination Then postmap /etc/postfix/access to

Re: New Postfix install

2008-10-01 Thread Noel Jones
Ujjval K wrote: After playing around with the master.cf file, i see the smtp port listening ... What is teh best way to send an email to say my yahoo account from command line? I am using smtp.comcast.net as my relayhost... install mutt. -- Noel Jones

Re: New Postfix install

2008-10-01 Thread Ujjval K
Hi, Thx for the reply..I have the mail Program, but it tries to use/usr/sbin/sendmail to send the email... Can that be configured to use postfix? thx --- On Thu, 10/2/08, Noel Jones [EMAIL PROTECTED] wrote: From: Noel Jones [EMAIL PROTECTED] Subject: Re: New Postfix install To: [EMAIL

Re: New Postfix install

2008-10-01 Thread Wietse Venema
Ujjval K: Hi, Thx for the reply..I have the mail Program, but it tries to use/usr/sbin/sendmail to send the email... That is the correct pathname Can that be configured to use postfix? No, you should instead configure the system MTA type so that everything will use Postfix. See: $

Re: New Postfix install

2008-10-01 Thread Ujjval K
Thx I was able to change MTAs to point to postfix... However , here is teh next error when trying to send email to myself.. Again I am using smtp.comcast.net:587 as my relayhost Oct 1 15:48:38 fedoracore2uk postfix/pickup[8658]: D34AF170AF0: uid=0 from=root Oct 1 15:48:38 fedoracore2uk

Re: New Postfix install

2008-10-01 Thread Борис Гонт
If you installed postfix from ports (for example in FreeBSD) the path of Postfix sendmail program may be /usr/local/sbin/sendmail

Re: trivial-rewrite regular expression substitution

2008-10-01 Thread David DeFranco
These are application generated messages and the format of the recipient address is very specific. The user part of the address contains a specific server and port the message needs to be sent to. Something like: [EMAIL PROTECTED] smtp:[server1]:10025 before I realized the

Re: New Postfix install

2008-10-01 Thread Ujjval K
I have it back in place, Not sure where to go next... Here is what I found on the internet for using comcast as relay host...but I still see smtp requests going out to dest port 25.. === The geniuses at Comcast (my ISP; no, I

Re: New Postfix install

2008-10-01 Thread Noel Jones
Ujjval K wrote: I have it back in place, Not sure where to go next... Stop top posting. Put your answers below the text you refer to. relayhost = [smtp.comcast.net]:587 Yes, that's the correct setting. Follow the instructions here: http://www.postfix.org/DEBUG_README.html#mail -- Noel

Re: trivial-rewrite regular expression substitution

2008-10-01 Thread Wietse Venema
David DeFranco: These are application generated messages and the format of the recipient address is very specific. The user part of the address contains a specific server and port the message needs to be sent to. Something like: [EMAIL PROTECTED] smtp:[server1]:10025 before I

Re: trivial-rewrite regular expression substitution

2008-10-01 Thread David DeFranco
No mailboxes on these servers so no worries there. Thanks for all your time and help. On Wed, Oct 1, 2008 at 5:19 PM, Wietse Venema [EMAIL PROTECTED] wrote: David DeFranco: These are application generated messages and the format of the recipient address is very specific. The user part of

Re: receiving smtpd[25253] error from sender

2008-10-01 Thread Sahil Tandon
Wray, Oran [EMAIL PROTECTED] wrote: smtpd[25253]: NOQUEUE: reject: RCPT from mailgw1.per-se.com[199.190.235.46]: 450 4.1.8 [EMAIL PROTECTED]: Sender address rejected: Domain not found; from=[EMAIL PROTECTED] to=[EMAIL PROTECTED] proto=ESMTP helo=mailgw1.per-se.com Please post the output of