Avoid recursive table lookup

2009-06-09 Thread Arnaud JAYET

Hello,

i'm trying to set up a Vacation Mail Responder using postfix and special 
transport + PERL script.


i want to let users choose between :
case 1 : automatic vacation responding and not delivrering the original 
message (message is lost)
case 2 : automatic vacation responding and delivrering original message 
in their mailbox


note : i'm using a MySQL lookup for storing users vacation parameters 
but i have got the same problem with standard db lookup



My configuration


transport :
autoreply.domain.tld:autoreply


master.cf :

autoreply   unix-   n   n   -   -   pipe
  flags=Oqu user=nobody argv=/usr/local/bin/vacation.pl $sender $recipient

main.cf :

virtual_alias_maps =
hash:/etc/postfix/vir_vacation,
...
...
...

in vir_vacation i can have

case 1 :
u...@domain.tld u...@autoreply.domain.tld

case 2:
u...@domain.tld u...@autoreply.domain.tld,u...@domain.tld


in case 1, all is fine, original sender receives the automatic mail

but in case 2, PERL script is called twice (but the message is well 
delivered in user's mailbox) and so there is 2 automatic mail sent to 
original sender


how can avoid this "recursive" lookup in the table and sending automatic 
vacation message twice ?



Note : I found a solution for case 2 using another transport to deliver 
 the original mail and sending a vacation mail :


transport :
autoreply.domain.tld:autoreply
deli...@domain.tld:  relay:[imapserver.domain.tld]

case 2:
u...@domain.tld u...@autoreply.domain.tld,u...@deliver.domain.tld

on the imap server i have a canonical regexp to rewrite
u...@deliver.domain.tld --> u...@domain.tld

/^(.*)@deliver.domain.tld/   $...@domain.tld


but if i could avoid this ("heavy" ?) solution








Re: Reputation based filtering...

2009-06-09 Thread EASY steve.h...@digitalcertainty.co.uk
On Tue, 2009-06-09 at 11:20 +0530, Anant Athavale wrote:
> Dear List:
> 
> We have got one Ironport appliance for evaluation.  It does reputation
> based filtering and drops lots of mails.  But, we are still running
> Postfix with SpamAssassin for Anti-SPAM.
> 
> Can Postfix can be integrated with something for reputation based
> filtering?
> 
> 
> Anant Athavale
> 
Not sure regarding the Ironport, but I imagine it is just the same as
the Barracuda. The 'Reputation' is just an in-house rbl list and Yes,
Postfix does these very well indeed. Here I am making use of a few;

smtpd_recipient_restrictions =
...
reject_rbl_client zen.spamhaus.org
reject_rbl_client pbl.spamhaus.org
reject_rbl_client dnsbl.sorbs.net
reject_rbl_client b.barracudacentral.org

Apart from a pretty GUI, you can achieve virtually all of what an
Ironport or Barracuda does with Open Source *free* software. That's all
those 'appliances' are. Open Source cobbled together and sold to you.

My money would say - don't waste your cash on the Ironport (and
certainly don't spend a cent on a Barracuda). 



handling non MX entry domains

2009-06-09 Thread truth_seeker_3535

Dear Pros,

I am using postfix-2.3.3-2 on CentOS 5.2. 

a. There is a valid domain called example.com.ex with a valid MX entry
b. There is another domain called example.com withour a MX entry (both can 
be for same company or for different)

Now when a user tries to send mail to u...@example.com.ex, its is successfully 
delivered.

But when a user tries to send mail to u...@example.com, even though it cant 
find the valid MX entry for this, still it is trying to send mail to the IP 
address which is resolved from example.com  because of this the sender is not 
getting any error message and this mail is there in the mailq for a long time. 
("connection refused" error message can be seen in the output of 'mailq' 
command).

The sender think that, the mail is successfully delivered, eventhough the 
reality is vice versa.

1. Is there any way to configure in postfix that, if he didnt find MX record 
for a domain even after (say 3 or 5 times) then postfix has to stop the 
processing of that mail, and send a error message indicating the MX problem to 
the sender.

2. Is there any way, to notify the sender the status of the message (other than 
sent). For eg; 
 a.. if a message sent successfully no need of any report or notification.
 b. if a message is in deferred queue, it should send a notification to user 
that, this is in deferred queue due to so and so issue (may be MX, may be 
network timeout, etc) and will try to deliver it in a later time.


Any guidance is really appreciated ;



-
--
---
Always try to find truth!!!









Re: handling non MX entry domains

2009-06-09 Thread Ruben Laban
On Tuesday 09 June 2009 at 10:41 (CET), truth_seeker_3...@yahoo.com wrote:
> 1. Is there any way to configure in postfix that, if he didnt find MX
> record for a domain even after (say 3 or 5 times) then postfix has to stop
> the processing of that mail, and send a error message indicating the MX
> problem to the sender.
>
> 2. Is there any way, to notify the sender the status of the message (other
> than sent). For eg; a.. if a message sent successfully no need of any
> report or notification. b. if a message is in deferred queue, it should
> send a notification to user that, this is in deferred queue due to so and
> so issue (may be MX, may be network timeout, etc) and will try to deliver
> it in a later time.

From 'man 5 postconf':

delay_warning_time (default: 0h)
   The time after which the sender receives the message headers of mail 
that is still queued.

   To enable this feature, specify a non-zero time value (an integral 
value plus an optional one-letter suffix that specifies the time unit).

   Time units: s (seconds), m (minutes), h (hours), d (days), w (weeks).  
The default time unit is h (hours).


-- 
Regards,

Ruben Laban
Systems and Network Administrator
ISM eCompany


Cryptic message for end users

2009-06-09 Thread Rocco Scappatura
Hello,

I have a postoffice system based on
Postfix+MySQL+Courier-IMAP+Courier-authlib+Maildrop.

I have enable quota checking with maildrop.

When quota is overcame then Postfix get a permanent error by maildrop
and generates a bounce with the following informations:



The message is 'as-is' reported by the MTA of the sender, to the sender.

This message is clearly too technical for end user which claim that mail
system has a fault!

Could I configure Postfix so that the message generated by Postfix when
the quota is exceeded, is easier to understand by end user? Or is a
matter of maildrop?

Thanks,

rocsca




Re: Cryptic message for end users

2009-06-09 Thread Ralf Hildebrandt
* Rocco Scappatura :
> Hello,
> 
> I have a postoffice system based on
> Postfix+MySQL+Courier-IMAP+Courier-authlib+Maildrop.
> 
> I have enable quota checking with maildrop.
> 
> When quota is overcame then Postfix get a permanent error by maildrop
> and generates a bounce with the following informations:
> 
>  exists maildrop: maildir over quota.>
> 
> The message is 'as-is' reported by the MTA of the sender, to the sender.
> 
> This message is clearly too technical for end user which claim that mail
> system has a fault!
> 
> Could I configure Postfix so that the message generated by Postfix when
> the quota is exceeded, is easier to understand by end user? Or is a
> matter of maildrop?

The latter. It even says so:

maildirmake: /pathto/user/: File exists 
maildrop: maildir over quota.

the script you're invoking at delivery time is broken

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
We have joy, we have fun, we have Linux on our Sun!


Restrict from domain based on sasl auth id

2009-06-09 Thread ram
We provide relay services for our clients. 

The clients mail-servers connect to our postfix servers , authenticate
using a client-accountid and send the messages. 

I would like to restrict the from domains for every client.(Mainly to
prevent inadvertent spam outbreaks) 

Can I use smtplogin maps to allow  only a list of enumerated
from-domains in the envelope senders


eg

/etc/postfix/smtploginmaps

accountid1  *...@domain1.com,*...@domain2.com
accountid2  *...@domain3.com



Is this possible 








deferred mail -retry

2009-06-09 Thread K bharathan
hi all
what's the default deferred mail retry time in postfix?
can i change it?
appreciate ur help


Re: deferred mail -retry

2009-06-09 Thread Ralf Hildebrandt
* K bharathan :
> hi all
> what's the default deferred mail retry time in postfix?

retry time for what?

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
Standard Cyrus SASL behaviour. SASL developers don't believe in
logging.  Logging is for wimps, real men use their psychic abilities
to find out what's going on.-- Liviu Daia


Re: deferred mail -retry

2009-06-09 Thread K bharathan
retrying time for attempting deliver the message

On Tue, Jun 9, 2009 at 1:16 PM, Ralf Hildebrandt <
ralf.hildebra...@charite.de> wrote:

> * K bharathan :
> > hi all
> > what's the default deferred mail retry time in postfix?
>
> retry time for what?
>
> --
> Ralf Hildebrandt
> Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
> http://www.computerbeschimpfung.de
> Standard Cyrus SASL behaviour. SASL developers don't believe in
> logging.  Logging is for wimps, real men use their psychic abilities
> to find out what's going on.-- Liviu Daia
>


Re: deferred mail -retry

2009-06-09 Thread Ralf Hildebrandt
* K bharathan :
> retrying time for attempting deliver the message

I assume you're thinking of non-local delivery

queue_run_delay = 300s
maximal_backoff_time = 4000s
minimal_backoff_time = 300s

The queue is scanned every 300s, initial minimal backoff is 300s,
maximum backoff is 4000s, with every unsuccessful retry the timespan
between to attempts is increased.

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
Windows is the answer, but only if the question was 'what is the
intellectual equivalent of being a galley slave?' 


RE: Cryptic message for end users

2009-06-09 Thread Rocco Scappatura
Thanks Ralph,

> > I have a postoffice system based on
> > Postfix+MySQL+Courier-IMAP+Courier-authlib+Maildrop.
> >
> > I have enable quota checking with maildrop.
> >
> > When quota is overcame then Postfix get a permanent error by maildrop
> > and generates a bounce with the following informations:
> >
> >  File
> > exists maildrop: maildir over quota.>
> >
> > The message is 'as-is' reported by the MTA of the sender, to the
> sender.
> >
> > This message is clearly too technical for end user which claim that
> mail
> > system has a fault!
> >
> > Could I configure Postfix so that the message generated by Postfix
> when
> > the quota is exceeded, is easier to understand by end user? Or is a
> > matter of maildrop?
> 
> The latter. It even says so:
> 
> maildirmake: /pathto/user/: File exists
> maildrop: maildir over quota.
> 
> the script you're invoking at delivery time is broken

What you mean precisely? How I can find the mistake?

Here my maildrop conf file:

log "test -d $HOME$DEFAULT"
`test -d $HOME$DEFAULT`
if ($RETURNCODE != 0)
{
log "mkdir -p $HOME$DEFAULT"
`mkdir -p $HOME$DEFAULT`
log "rmdir $HOME$DEFAULT"
`rmdir $HOME$DEFAULT`
}

log "/usr/local/courier/bin/maildirmake $HOME$DEFAULT"
`/usr/local/courier/bin/maildirmake $HOME$DEFAULT`

log "/usr/local/courier/bin/maildirmake -q $MAILDIRQUOTA $HOME$DEFAULT"
`/usr/local/courier/bin/maildirmake -q $MAILDIRQUOTA $HOME$DEFAULT`
.
.
.
TO "$HOME$DEFAULT"

rocsca


Re: deferred mail -retry

2009-06-09 Thread K bharathan
thanks

On Tue, Jun 9, 2009 at 2:24 PM, Ralf Hildebrandt <
ralf.hildebra...@charite.de> wrote:

> * K bharathan :
> > retrying time for attempting deliver the message
>
> I assume you're thinking of non-local delivery
>
> queue_run_delay = 300s
> maximal_backoff_time = 4000s
> minimal_backoff_time = 300s
>
> The queue is scanned every 300s, initial minimal backoff is 300s,
> maximum backoff is 4000s, with every unsuccessful retry the timespan
> between to attempts is increased.
>
> --
> Ralf Hildebrandt
> Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
> http://www.computerbeschimpfung.de
> Windows is the answer, but only if the question was 'what is the
> intellectual equivalent of being a galley slave?'
>


Re: Reputation based filtering...

2009-06-09 Thread Gautam Singaraju
Check out RepuScore: http:.//isr.uncc.edu/RepuScore. The spamassassin
plugin we designed computes reputation and stores them in a database.
We have not closed the 'loop' using reputation to classify emails,
yet. But, you can use it as a part of spamassassin scoring.
---
Gautam Singaraju



On Tue, Jun 9, 2009 at 1:50 AM, Anant Athavale wrote:
> Dear List:
>
> We have got one Ironport appliance for evaluation.  It does reputation based
> filtering and drops lots of mails.  But, we are still running Postfix with
> SpamAssassin for Anti-SPAM.
>
> Can Postfix can be integrated with something for reputation based filtering?
>
> Anant Athavale


Re: handling non MX entry domains

2009-06-09 Thread truth_seeker_3535

Thanks for the reply...

but i didnt get any explanation on how it sends to a domain which he didnt find 
the MX entry?


delay_warning_time will notify the current status to the user? or it will warn 
the user and stop processing that mail?

-
--
---
Always try to find truth!!!



--- On Tue, 6/9/09, Ruben Laban  wrote:

> From: Ruben Laban 
> Subject: Re: handling non MX entry domains
> To: postfix-users@postfix.org
> Date: Tuesday, June 9, 2009, 12:04 PM
> On Tuesday 09 June 2009 at 10:41
> (CET), truth_seeker_3...@yahoo.com
> wrote:
> > 1. Is there any way to configure in postfix that, if
> he didnt find MX
> > record for a domain even after (say 3 or 5 times) then
> postfix has to stop
> > the processing of that mail, and send a error message
> indicating the MX
> > problem to the sender.
> >
> > 2. Is there any way, to notify the sender the status
> of the message (other
> > than sent). For eg; a.. if a message sent successfully
> no need of any
> > report or notification. b. if a message is in deferred
> queue, it should
> > send a notification to user that, this is in deferred
> queue due to so and
> > so issue (may be MX, may be network timeout, etc) and
> will try to deliver
> > it in a later time.
> 
> From 'man 5 postconf':
> 
> delay_warning_time (default: 0h)
>        The time after which the
> sender receives the message headers of mail 
> that is still queued.
> 
>        To enable this feature,
> specify a non-zero time value (an integral 
> value plus an optional one-letter suffix that specifies the
> time unit).
> 
>        Time units: s (seconds), m
> (minutes), h (hours), d (days), w (weeks).  
> The default time unit is h (hours).
> 
> 
> -- 
> Regards,
> 
> Ruben Laban
> Systems and Network Administrator
> ISM eCompany
>







Re: handling non MX entry domains

2009-06-09 Thread Terry Carmen

>
> Thanks for the reply...
>
> but i didnt get any explanation on how it sends to a domain which he didnt
> find the MX entry?
>
>

If no MX record is found, the A record is used.

http://tools.ietf.org/html/rfc5321

Terry



Re: handling non MX entry domains

2009-06-09 Thread Ruben Laban
On Tuesday 09 June 2009 at 15:03 (CET), truth_seeker_3...@yahoo.com wrote:
> but i didnt get any explanation on how it sends to a domain which he didnt
> find the MX entry?

If example.com doesn't have a MX record, it will use the A record of 
example.com (if it exists).

> delay_warning_time will notify the current status to the user? or it will
> warn the user and stop processing that mail?

It tells the message has not been delivered yet, and that the system will 
continue to try (until max queue lifetime is reached).

-- 
Regards,

Ruben Laban
Systems and Network Administrator
ISM eCompany


Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread Truth Seeker


Dear Pros,

how can i stop accepting mails on postfix server from all my clients but at the 
same time, i want to postfix to complete the tasks in the queue.

For eg; if i want to do some maintenance work on the system, i want to first 
stop accepting mails in my mails server from the clients. Then i want to wait 
for the server to complete the processing in the queue (which he is already 
accepted, then after that i want to shutdown the postfix service completely 
inorder to carry out my maintenance task



-
--
---
Always try to find truth!!!



  



Re: handling non MX entry domains

2009-06-09 Thread Truth Seeker


Really thanks to ruben and terry...

Let me set this setting...

by the way, i am curious to know, if i want to delete a particular mail from 
the queue (may be in active or in deferred) how can we do that.

an example like mail message id 8AD5TYU is in deferred and i want to delete it, 
how can i do that (if i delete, this manually, any problem for the system ?) 
and if i delete this with a command, will the postfix send a notification to 
the user?

another example mail message id 6FG23DB is in active queue and i want to delete 
it. how can i do that (by notification to the user and also another way without 
notifying the user) 
what will happen if i delete the mail message by rm command from the active 
queue?


-
--
---
Always try to find truth!!!

***---***--***

Its always nice to know that people with no understanding of technologies want 
to evaluate technical professionals based on their own lack of knowledge

***---***--***


--- On Tue, 6/9/09, Ruben Laban  wrote:

> From: Ruben Laban 
> Subject: Re: handling non MX entry domains
> To: postfix-users@postfix.org
> Date: Tuesday, June 9, 2009, 4:18 PM
> On Tuesday 09 June 2009 at 15:03
> (CET), truth_seeker_3...@yahoo.com
> wrote:
> > but i didnt get any explanation on how it sends to a
> domain which he didnt
> > find the MX entry?
> 
> If example.com doesn't have a MX record, it will use the A
> record of 
> example.com (if it exists).
> 
> > delay_warning_time will notify the current status to
> the user? or it will
> > warn the user and stop processing that mail?
> 
> It tells the message has not been delivered yet, and that
> the system will 
> continue to try (until max queue lifetime is reached).
> 
> -- 
> Regards,
> 
> Ruben Laban
> Systems and Network Administrator
> ISM eCompany
> 


  



Re: Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread Ralf Hildebrandt
* Truth Seeker :
> 
> 
> Dear Pros,
> 
> how can i stop accepting mails on postfix server from all my clients
> but at the same time, i want to postfix to complete the tasks in the
> queue.

With 2.6.x

postconf -e master_service_disable=inet
postfix reload

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
This is the first age that's paid much attention to the future, which is
a little ironic since we may not have one. -- Arthur Clarke


RE: Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread Gary Smith
shooting from the hip I would say stop listening on the network connection and 
only listen to localhost


In the /etc/postfix/master.cf file change the line smtp... to 127.0.0.1:smtp 
... thus forcing it to listen to localhost only.


From: owner-postfix-us...@postfix.org [owner-postfix-us...@postfix.org] On 
Behalf Of Truth Seeker [truth_seeker_3...@yahoo.com]
Sent: Tuesday, June 09, 2009 8:25 AM
To: postfix-users@postfix.org
Subject: Stop accepting mails from clients but process the mails which is 
already in the queue???

Dear Pros,

how can i stop accepting mails on postfix server from all my clients but at the 
same time, i want to postfix to complete the tasks in the queue.

For eg; if i want to do some maintenance work on the system, i want to first 
stop accepting mails in my mails server from the clients. Then i want to wait 
for the server to complete the processing in the queue (which he is already 
accepted, then after that i want to shutdown the postfix service completely 
inorder to carry out my maintenance task



-
--
---
Always try to find truth!!!

Re: Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread truth_seeker_3535

Thanks for the reply...

but mine is postfix-2.3.3-2 . so i want to do like what Gary smith was advicing 
??? 

Gary, will it effect my system in any way?

please suggest...


--
---
Always try to find truth!!!

--- On Tue, 6/9/09, Ralf Hildebrandt  wrote:

> From: Ralf Hildebrandt 
> Subject: Re: Stop accepting mails from clients but process the mails which is 
> already in the queue???
> To: postfix-users@postfix.org
> Date: Tuesday, June 9, 2009, 6:28 PM
> * Truth Seeker :
> > 
> > 
> > Dear Pros,
> > 
> > how can i stop accepting mails on postfix server from
> all my clients
> > but at the same time, i want to postfix to complete
> the tasks in the
> > queue.
> 
> With 2.6.x
> 
> postconf -e master_service_disable=inet
> postfix reload
>     
> -- 
> Ralf Hildebrandt
> Postfix - Einrichtung, Betrieb und Wartung   
>    Tel. +49 (0)30-450 570-155
> http://www.computerbeschimpfung.de
> This is the first age that's paid much attention to the
> future, which is
> a little ironic since we may not have one. 
>    -- Arthur Clarke
>







Re: handling non MX entry domains

2009-06-09 Thread Terry Carmen
> Really thanks to ruben and terry...
>
> Let me set this setting...
>
> by the way, i am curious to know, if i want to delete a particular mail from
> the queue (may be in active or in deferred) how can we do that.

postsuper -d QUEUE_ID

For more info: man postsuper

you can get the queue ID from the message or postqueue -p

> an example like mail message id 8AD5TYU is in deferred and i want to delete
> it, how can i do that (if i delete, this manually, any problem for the system
> ?) and if i delete this with a command, will the postfix send a notification
> to the user?

Never delete things manually from any active queue.

You can delete queued messages with the above command, however in any case,
there will be no user notification for the sender or intended recipient.


> another example mail message id 6FG23DB is in active queue and i want to
> delete it. how can i do that (by notification to the user and also another way
> without notifying the user)
> what will happen if i delete the mail message by rm command from the active
> queue?

Never delete things manually from any active queue. I doubt it would work
anyway, from the ACTIVE queue, but would absolutely not recommend trying it.
Postfix doesn't expect files to be ripped away while being processed.

AFAIK you can do what you want with anything in the HOLD queue.

Terry






>
>
> -
> --
> ---
> Always try to find truth!!!
>
> ***---***--***
>
> Its always nice to know that people with no understanding of technologies want
> to evaluate technical professionals based on their own lack of knowledge
>
> ***---***--***
>
>
> --- On Tue, 6/9/09, Ruben Laban  wrote:
>
>> From: Ruben Laban 
>> Subject: Re: handling non MX entry domains
>> To: postfix-users@postfix.org
>> Date: Tuesday, June 9, 2009, 4:18 PM
>> On Tuesday 09 June 2009 at 15:03
>> (CET), truth_seeker_3...@yahoo.com
>> wrote:
>> > but i didnt get any explanation on how it sends to a
>> domain which he didnt
>> > find the MX entry?
>>
>> If example.com doesn't have a MX record, it will use the A
>> record of
>> example.com (if it exists).
>>
>> > delay_warning_time will notify the current status to
>> the user? or it will
>> > warn the user and stop processing that mail?
>>
>> It tells the message has not been delivered yet, and that
>> the system will
>> continue to try (until max queue lifetime is reached).
>>
>> --
>> Regards,
>>
>> Ruben Laban
>> Systems and Network Administrator
>> ISM eCompany
>>
>
>
>
>
>


-- 
CNY Support, LLC
Web. Database. Business
http://www.cnysupport.com




Re: Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread Ralf Hildebrandt
* truth_seeker_3...@yahoo.com :
> 
> Thanks for the reply...
> 
> but mine is postfix-2.3.3-2.

2.3 ist almost 3 years old.

> so i want to do like what Gary smith was advicing ??? 

Disable the master.cf entry for smtpd

> Gary, will it effect my system in any way?
> 
> please suggest...

Update?

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
Given the opacity of the product, how could a Windows admin ever know
as much about Windows as a UNIX admin does about UNIX?! (Roger B. A.
Klorese on Postfix Mailing List) 


flush all mails for a particular domain from deferred queue

2009-06-09 Thread Truth Seeker


Dear Pros;

1. Is there any way to flush all mails to a particular domain from the deferred 
queue?

2. How can i flush just one mail say mail message id 6E4D82ED19E from the 
deferred queue?


-
--
---
Always try to find truth!!!




  



RE: Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread Gary Smith
Well, it sill stop postfix from listening to anything other then the localhost 
for submissions therefore preventing external (to the machine) submissions.

When you are done, just remove 127.0.0.1: from in front of the smtp statement.

Gary


From: owner-postfix-us...@postfix.org [owner-postfix-us...@postfix.org] On 
Behalf Of truth_seeker_3...@yahoo.com [truth_seeker_3...@yahoo.com]
Sent: Tuesday, June 09, 2009 8:39 AM
To: postfix-users@postfix.org
Subject: Re: Stop accepting mails from clients but process the mails which is 
already in the queue???

Thanks for the reply...

but mine is postfix-2.3.3-2 . so i want to do like what Gary smith was advicing 
???

Gary, will it effect my system in any way?

please suggest...


--
---
Always try to find truth!!!

--- On Tue, 6/9/09, Ralf Hildebrandt  wrote:

> From: Ralf Hildebrandt 
> Subject: Re: Stop accepting mails from clients but process the mails which is 
> already in the queue???
> To: postfix-users@postfix.org
> Date: Tuesday, June 9, 2009, 6:28 PM
> * Truth Seeker :
> >
> >
> > Dear Pros,
> >
> > how can i stop accepting mails on postfix server from
> all my clients
> > but at the same time, i want to postfix to complete
> the tasks in the
> > queue.
>
> With 2.6.x
>
> postconf -e master_service_disable=inet
> postfix reload
>
> --
> Ralf Hildebrandt
> Postfix - Einrichtung, Betrieb und Wartung
>Tel. +49 (0)30-450 570-155
> http://www.computerbeschimpfung.de
> This is the first age that's paid much attention to the
> future, which is
> a little ironic since we may not have one.
>-- Arthur Clarke
>

Re: handling non MX entry domains

2009-06-09 Thread Truth Seeker



Thank you very much Terry!!!

-
--
---
Always try to find truth!!!


--- On Tue, 6/9/09, Terry Carmen  wrote:

> From: Terry Carmen 
> Subject: Re: handling non MX entry domains
> To: "Truth Seeker" 
> Cc: postfix-users@postfix.org, "Ruben Laban" 
> Date: Tuesday, June 9, 2009, 6:40 PM
> > Really thanks to ruben and
> terry...
> >
> > Let me set this setting...
> >
> > by the way, i am curious to know, if i want to delete
> a particular mail from
> > the queue (may be in active or in deferred) how can we
> do that.
> 
> postsuper -d QUEUE_ID
> 
> For more info: man postsuper
> 
> you can get the queue ID from the message or postqueue -p
> 
> > an example like mail message id 8AD5TYU is in deferred
> and i want to delete
> > it, how can i do that (if i delete, this manually, any
> problem for the system
> > ?) and if i delete this with a command, will the
> postfix send a notification
> > to the user?
> 
> Never delete things manually from any active queue.
> 
> You can delete queued messages with the above command,
> however in any case,
> there will be no user notification for the sender or
> intended recipient.
> 
> 
> > another example mail message id 6FG23DB is in active
> queue and i want to
> > delete it. how can i do that (by notification to the
> user and also another way
> > without notifying the user)
> > what will happen if i delete the mail message by rm
> command from the active
> > queue?
> 
> Never delete things manually from any active queue. I doubt
> it would work
> anyway, from the ACTIVE queue, but would absolutely not
> recommend trying it.
> Postfix doesn't expect files to be ripped away while being
> processed.
> 
> AFAIK you can do what you want with anything in the HOLD
> queue.
> 
> Terry
> 
> 
> 
> 
> 
> 
> >
> >
> > -
> > --
> > ---
> > Always try to find truth!!!
> >
> >
> ***---***--***
> >
> > Its always nice to know that people with no
> understanding of technologies want
> > to evaluate technical professionals based on their own
> lack of knowledge
> >
> >
> ***---***--***
> >
> >
> > --- On Tue, 6/9/09, Ruben Laban 
> wrote:
> >
> >> From: Ruben Laban 
> >> Subject: Re: handling non MX entry domains
> >> To: postfix-users@postfix.org
> >> Date: Tuesday, June 9, 2009, 4:18 PM
> >> On Tuesday 09 June 2009 at 15:03
> >> (CET), truth_seeker_3...@yahoo.com
> >> wrote:
> >> > but i didnt get any explanation on how it
> sends to a
> >> domain which he didnt
> >> > find the MX entry?
> >>
> >> If example.com doesn't have a MX record, it will
> use the A
> >> record of
> >> example.com (if it exists).
> >>
> >> > delay_warning_time will notify the current
> status to
> >> the user? or it will
> >> > warn the user and stop processing that mail?
> >>
> >> It tells the message has not been delivered yet,
> and that
> >> the system will
> >> continue to try (until max queue lifetime is
> reached).
> >>
> >> --
> >> Regards,
> >>
> >> Ruben Laban
> >> Systems and Network Administrator
> >> ISM eCompany
> >>
> >
> >
> >
> >
> >
> 
> 
> -- 
> CNY Support, LLC
> Web. Database. Business
> http://www.cnysupport.com
> 
> 
> 


  



Re: flush all mails for a particular domain from deferred queue

2009-06-09 Thread Ralf Hildebrandt
* Truth Seeker :
> 
> 
> Dear Pros;
> 
> 1. Is there any way to flush all mails to a particular domain from the 
> deferred queue?

Yes
man postqueue

> 2. How can i flush just one mail say mail message id 6E4D82ED19E from the 
> deferred queue?

man postqueue

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
Am I advocating HTML email? No. I think it sucks. I'm really not interested
in your artistic whims of yellow text on funky purple wallpaper.


Re: Cryptic message for end users

2009-06-09 Thread Ralf Hildebrandt
* Rocco Scappatura :

Error 1: maildirmake: /pathto/user/: File exists
Error 2: maildrop: maildir over quota.

> What you mean precisely? How I can find the mistake?
> 
> Here my maildrop conf file:
> 
> log "test -d $HOME$DEFAULT"
> `test -d $HOME$DEFAULT`
> if ($RETURNCODE != 0)
> {
> log "mkdir -p $HOME$DEFAULT"
> `mkdir -p $HOME$DEFAULT`
> log "rmdir $HOME$DEFAULT"
> `rmdir $HOME$DEFAULT`
> }
> 
> log "/usr/local/courier/bin/maildirmake $HOME$DEFAULT"
> `/usr/local/courier/bin/maildirmake $HOME$DEFAULT`
Either the line above
 
> log "/usr/local/courier/bin/maildirmake -q $MAILDIRQUOTA $HOME$DEFAULT"
> `/usr/local/courier/bin/maildirmake -q $MAILDIRQUOTA $HOME$DEFAULT`
Or the line above is causing error 1!

> .
> .
> .
> TO "$HOME$DEFAULT"

This causes error 2

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
postfix-users@postfix.org: The list that makes you think!


RE: Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread Truth Seeker


Thank you Gary & Ralf for your valuable advices...


-
--
---
Always try to find truth!!!



--- On Tue, 6/9/09, Gary Smith  wrote:

> From: Gary Smith 
> Subject: RE: Stop accepting mails from clients but process the mails which is 
> already in the queue???
> To: "truth_seeker_3...@yahoo.com" , 
> "postfix-users@postfix.org" 
> Date: Tuesday, June 9, 2009, 6:42 PM
> Well, it sill stop postfix from
> listening to anything other then the localhost for
> submissions therefore preventing external (to the machine)
> submissions.
> 
> When you are done, just remove 127.0.0.1: from in front of
> the smtp statement.
> 
> Gary
> 
> 
> From: owner-postfix-us...@postfix.org
> [owner-postfix-us...@postfix.org]
> On Behalf Of truth_seeker_3...@yahoo.com
> [truth_seeker_3...@yahoo.com]
> Sent: Tuesday, June 09, 2009 8:39 AM
> To: postfix-users@postfix.org
> Subject: Re: Stop accepting mails from clients but process
> the mails which is already in the queue???
> 
> Thanks for the reply...
> 
> but mine is postfix-2.3.3-2 . so i want to do like what
> Gary smith was advicing ???
> 
> Gary, will it effect my system in any way?
> 
> please suggest...
> 
> 
> --
> ---
> Always try to find truth!!!
> 
> --- On Tue, 6/9/09, Ralf Hildebrandt 
> wrote:
> 
> > From: Ralf Hildebrandt 
> > Subject: Re: Stop accepting mails from clients but
> process the mails which is already in the queue???
> > To: postfix-users@postfix.org
> > Date: Tuesday, June 9, 2009, 6:28 PM
> > * Truth Seeker :
> > >
> > >
> > > Dear Pros,
> > >
> > > how can i stop accepting mails on postfix server
> from
> > all my clients
> > > but at the same time, i want to postfix to
> complete
> > the tasks in the
> > > queue.
> >
> > With 2.6.x
> >
> > postconf -e master_service_disable=inet
> > postfix reload
> >
> > --
> > Ralf Hildebrandt
> > Postfix - Einrichtung, Betrieb und Wartung
> >    Tel. +49 (0)30-450 570-155
> > http://www.computerbeschimpfung.de
> > This is the first age that's paid much attention to
> the
> > future, which is
> > a little ironic since we may not have one.
> >    -- Arthur Clarke
> >






transport

2009-06-09 Thread Antonio Hooper
 hi postfix-users@

my /etc/postfix/transport, transport_maps:

google.com smtp1:
yahoo.com  smtp2:

it is working nicely :) but i would like to use my origin/domain:

>From m...@nyinternaldomain  smtp1:

undertstand ? is it possible ?


Re: transport

2009-06-09 Thread Ralf Hildebrandt
* Antonio Hooper :
>  hi postfix-users@
> 
> my /etc/postfix/transport, transport_maps:
> 
> google.com smtp1:
> yahoo.com  smtp2:

OK
 
> it is working nicely :) but i would like to use my origin/domain:
> 
> From m...@nyinternaldomain  smtp1:
> 
> undertstand ?

No. Do you want sender based routing?

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
Sysadmins don't go to hell; we're already doing our time in purgatory. 


Re: transport

2009-06-09 Thread Antonio Hooper
2009/6/9 Ralf Hildebrandt 
>
> * Antonio Hooper :
> >  hi postfix-users@
> >
> > my /etc/postfix/transport, transport_maps:
> >
> > google.com     smtp1:
> > yahoo.com      smtp2:
>
> OK
>
> > it is working nicely :) but i would like to use my origin/domain:
> >
> > From m...@nyinternaldomain  smtp1:
> >
> > undertstand ?
>
> No. Do you want sender based routing?
>
> --
> Ralf Hildebrandt
> Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
> http://www.computerbeschimpfung.de
> Sysadmins don't go to hell; we're already doing our time in purgatory.

exactly. is it possible ?


Re: transport

2009-06-09 Thread Ralf Hildebrandt
* Antonio Hooper :

> > No. Do you want sender based routing?

> exactly. is it possible ?

http://www.postfix.org/SOHO_README.html
Supporting multiple ISP accounts in the Postfix SMTP client

-- 
Ralf Hildebrandt
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.computerbeschimpfung.de
"The Internet is like a giant jellyfish. You can't step on it. You
can't go around it. You've got to get through it."-John Evans


RE: Cryptic message for end users

2009-06-09 Thread Rocco Scappatura
Thanks Ralph,

> * Rocco Scappatura :
> 
> Error 1: maildirmake: /pathto/user/: File exists
> Error 2: maildrop: maildir over quota.
> 
> > What you mean precisely? How I can find the mistake?
> >
> > Here my maildrop conf file:
> >
> > log "test -d $HOME$DEFAULT"
> > `test -d $HOME$DEFAULT`
> > if ($RETURNCODE != 0)
> > {
> > log "mkdir -p $HOME$DEFAULT"
> > `mkdir -p $HOME$DEFAULT`
> > log "rmdir $HOME$DEFAULT"
> > `rmdir $HOME$DEFAULT`
> > }
> >
> > log "/usr/local/courier/bin/maildirmake $HOME$DEFAULT"
> > `/usr/local/courier/bin/maildirmake $HOME$DEFAULT`
> Either the line above
> 
> > log "/usr/local/courier/bin/maildirmake -q $MAILDIRQUOTA
> $HOME$DEFAULT"
> > `/usr/local/courier/bin/maildirmake -q $MAILDIRQUOTA $HOME$DEFAULT`
> Or the line above is causing error 1!
> 
> > .
> > .
> > .
> > TO "$HOME$DEFAULT"
> 
> This causes error 2

I will write a more relaible conf from maildrop for the matter of error 1. 
While I remove line cousing error 2.

BTW, still Brixen next summer? ;-)

rocsca


what is the meaning???

2009-06-09 Thread Truth Seeker



Dear Pros,

now to do flushing for a particular domain, i am trying to configure fast flush 
service. in the documentation i found the following line, which i am confused.

could anyone explain this further

As mentioned in the introduction, the mail is delivered by connecting to the 
customer's SMTP server; it is not sent over the connection that was used to 
send the ETRN command. 

i feel like they are mentioning about two connection? 
i didnt understand which are these two connections? 
then i feel like whenever we are sending a mail to a domain, its usual that it 
will try to connect to that particular mail server to deliver it. in such a 
case, why here they mentioned about 2 connections???






  



RE: Stop accepting mails from clients but process the mails which is already in the queue???

2009-06-09 Thread Truth Seeker


First i tried to do this by looking in to main.cf. but i didnt find any line 
regarding listening on my ip. rather i found the declaration about mynetworks 
which i changed to 127.0.0.0/8. then i tried to connect to port 25 by telnet 
from other machine, it was connecting. so i reverted the changes and then tried 
the Ralf's way.

that is, i disabled the smtp line (by comment) master.cf and then postfix 
reload. which completely disables the smtp. 

once again thanks for the help


-
--
---
Always try to find truth!!!


--- On Tue, 6/9/09, Truth Seeker  wrote:

> From: Truth Seeker 
> Subject: RE: Stop accepting mails from clients but process the mails which is 
> already in the queue???
> To: "postfix-users@postfix.org" , "Gary Smith" 
> 
> Date: Tuesday, June 9, 2009, 6:47 PM
> 
> 
> Thank you Gary & Ralf for your valuable advices...
> 
> 
> -
> --
> ---
> Always try to find truth!!!
> 
> 
> 
> --- On Tue, 6/9/09, Gary Smith 
> wrote:
> 
> > From: Gary Smith 
> > Subject: RE: Stop accepting mails from clients but
> process the mails which is already in the queue???
> > To: "truth_seeker_3...@yahoo.com"
> ,
> "postfix-users@postfix.org"
> 
> > Date: Tuesday, June 9, 2009, 6:42 PM
> > Well, it sill stop postfix from
> > listening to anything other then the localhost for
> > submissions therefore preventing external (to the
> machine)
> > submissions.
> > 
> > When you are done, just remove 127.0.0.1: from in
> front of
> > the smtp statement.
> > 
> > Gary
> > 
> > 
> > From: owner-postfix-us...@postfix.org
> > [owner-postfix-us...@postfix.org]
> > On Behalf Of truth_seeker_3...@yahoo.com
> > [truth_seeker_3...@yahoo.com]
> > Sent: Tuesday, June 09, 2009 8:39 AM
> > To: postfix-users@postfix.org
> > Subject: Re: Stop accepting mails from clients but
> process
> > the mails which is already in the queue???
> > 
> > Thanks for the reply...
> > 
> > but mine is postfix-2.3.3-2 . so i want to do like
> what
> > Gary smith was advicing ???
> > 
> > Gary, will it effect my system in any way?
> > 
> > please suggest...
> > 
> > 
> > --
> > ---
> > Always try to find truth!!!
> > 
> > --- On Tue, 6/9/09, Ralf Hildebrandt 
> > wrote:
> > 
> > > From: Ralf Hildebrandt 
> > > Subject: Re: Stop accepting mails from clients
> but
> > process the mails which is already in the queue???
> > > To: postfix-users@postfix.org
> > > Date: Tuesday, June 9, 2009, 6:28 PM
> > > * Truth Seeker :
> > > >
> > > >
> > > > Dear Pros,
> > > >
> > > > how can i stop accepting mails on postfix
> server
> > from
> > > all my clients
> > > > but at the same time, i want to postfix to
> > complete
> > > the tasks in the
> > > > queue.
> > >
> > > With 2.6.x
> > >
> > > postconf -e master_service_disable=inet
> > > postfix reload
> > >
> > > --
> > > Ralf Hildebrandt
> > > Postfix - Einrichtung, Betrieb und Wartung
> > >    Tel. +49 (0)30-450 570-155
> > > http://www.computerbeschimpfung.de
> > > This is the first age that's paid much attention
> to
> > the
> > > future, which is
> > > a little ironic since we may not have one.
> > >    -- Arthur Clarke
> > >
> 
> 
> 
> 
> 






Re: handling non MX entry domains

2009-06-09 Thread Truth Seeker


> > Let me set this setting...
> >
> > by the way, i am curious to know, if i want to delete
> a particular mail from
> > the queue (may be in active or in deferred) how can we
> do that.
> 
> postsuper -d QUEUE_ID


ok. now i want to inform the user about this action. HOW can i do that? anyway 
for sending a notification at this point





  



Re: handling non MX entry domains

2009-06-09 Thread Wietse Venema
Truth Seeker:
> 
> 
> > > Let me set this setting...
> > >
> > > by the way, i am curious to know, if i want to delete
> > a particular mail from
> > > the queue (may be in active or in deferred) how can we
> > do that.
> > 
> > postsuper -d QUEUE_ID
> 
> 
> ok. now i want to inform the user about this action. HOW can i do
> that? anyway for sending a notification at this point

There is no need to manual delete mail from the queue that way.

When mail can't be delivered, Postfix will return it to the sender
after $maximal_queue_life_time.

Wietse


Re: transport

2009-06-09 Thread Antonio Hooper
2009/6/9 Ralf Hildebrandt :
> * Antonio Hooper :
>
>> > No. Do you want sender based routing?
>
>> exactly. is it possible ?
>
> http://www.postfix.org/SOHO_README.html
> Supporting multiple ISP accounts in the Postfix SMTP client
>
> --
> Ralf Hildebrandt
> Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
> http://www.computerbeschimpfung.de
> "The Internet is like a giant jellyfish. You can't step on it. You
> can't go around it. You've got to get through it."-John Evans
>

with transport, i do: master.cf:
smtp_teste   unix  -   -   n   -   -   smtp  -o
myhostname=mx.test.com

and call it based/destination in /etc/transport_maps.

thera one way to do it with sender based ?


message_size_limit

2009-06-09 Thread Simon Schelkshorn
Hi there,

I added a second listener in my master.cf. For this listener I added 
the option message_size_limit=2048 to increase the maximum size 
for emails sent via this additional listener.

192.168.xxx.xxx:25   inetn   -   n   -   -   smtpd 
-o content_filter=
-o message_size_limit=2048

When I now connect to the server it correctly notifies me about the 
maximum message size.

vs100:/home/simon # telnet 192.168.xxx.xxx 25
Trying 192.168.xxx.xxx...
Connected to 192.168.xxx.xxx.
Escape character is '^]'.
220 mail2.example.com ESMTP Postfix
EHLO mail1.example.com
250-mail2.example.com
250-PIPELINING
250-SIZE 2048
250-VRFY
250-ETRN
250 8BITMIME
quit
221 Bye
Connection closed by foreign host.

Sending a message larger than the default size of 10MB still results 
in an error message.

552 Error: message too large

The message size after BASE64 encoding was approx. 14MB.

Can anyone point me into the right direction, what I'm doing wrong?

BR,
Simon



Re: handling non MX entry domains

2009-06-09 Thread Truth Seeker


> > > 
> > > postsuper -d QUEUE_ID
> > 
> > 
> > ok. now i want to inform the user about this action.
> HOW can i do
> > that? anyway for sending a notification at this
> point
> 
> There is no need to manual delete mail from the queue that
> way.


i agree. But now i have to do it with  postsuper -d QUEUE_ID

in this situation how can i notify the user? i believe there will be somehow  a 
way to inform the user!!!



  



Re: message_size_limit

2009-06-09 Thread Truth Seeker



i feel like you have to add the following in main.cf (not in master.cf)

message_size_limit = 2048

for me this is working fine... and have the same size limit


-
--
---
Always try to find truth!!!

-


--- On Tue, 6/9/09, Simon Schelkshorn  wrote:

> From: Simon Schelkshorn 
> Subject: message_size_limit
> To: "postfix users" 
> Date: Tuesday, June 9, 2009, 8:24 PM
> Hi there,
> 
> I added a second listener in my master.cf. For this
> listener I added 
> the option message_size_limit=2048 to increase the
> maximum size 
> for emails sent via this additional listener.
> 
> 192.168.xxx.xxx:25   
>    inet    n   
>    -       n 
>      -   
>    -       smtpd -o
> content_filter=
>                
>         -o message_size_limit=2048
> 
> When I now connect to the server it correctly notifies me
> about the 
> maximum message size.
> 
> vs100:/home/simon # telnet 192.168.xxx.xxx 25
> Trying 192.168.xxx.xxx...
> Connected to 192.168.xxx.xxx.
> Escape character is '^]'.
> 220 mail2.example.com ESMTP Postfix
> EHLO mail1.example.com
> 250-mail2.example.com
> 250-PIPELINING
> 250-SIZE 2048
> 250-VRFY
> 250-ETRN
> 250 8BITMIME
> quit
> 221 Bye
> Connection closed by foreign host.
> 
> Sending a message larger than the default size of 10MB
> still results 
> in an error message.
> 
> 552 Error: message too large
> 
> The message size after BASE64 encoding was approx. 14MB.
> 
> Can anyone point me into the right direction, what I'm
> doing wrong?
> 
> BR,
> Simon
> 
> 






Re: message_size_limit

2009-06-09 Thread Wietse Venema
Simon Schelkshorn:
> Hi there,
> 
> I added a second listener in my master.cf. For this listener I added 
> the option message_size_limit=2048 to increase the maximum size 
> for emails sent via this additional listener.

You can't change the size limit for the SMTP server alone.
It must be a main.cf setting.

Wietse


Re: handling non MX entry domains

2009-06-09 Thread Wietse Venema
Truth Seeker:
> 
> 
> > > > 
> > > > postsuper -d QUEUE_ID
> > > 
> > > 
> > > ok. now i want to inform the user about this action.
> > HOW can i do
> > > that? anyway for sending a notification at this
> > point
> > 
> > There is no need to manual delete mail from the queue that
> > way.
> 
> 
> i agree. But now i have to do it with  postsuper -d QUEUE_ID
> 
> in this situation how can i notify the user? i believe there will
> be somehow  a way to inform the user!!!

Let the system work for you. Let Postfix remove the
mail when it expires, and let Postfix notify the sender.

Wietse


Re: handling non MX entry domains

2009-06-09 Thread Terry Carmen
>> > > postsuper -d QUEUE_ID
>> >
>> >
>> > ok. now i want to inform the user about this action.
>> HOW can i do
>> > that? anyway for sending a notification at this
>> point
>>
>> There is no need to manual delete mail from the queue that
>> way.
>
>
> i agree. But now i have to do it with  postsuper -d QUEUE_ID
>
> in this situation how can i notify the user? i believe there will be somehow
> a way to inform the user!!!
>

There is no automatic notification for postsuper -d. If you want to notify
users that you deleted their mail, you'll need to do it yourself.

However if all you want to do is bounce undeliverable messages, you don't need
to do anything. Just configure whatever maximal_queue_lifetime you find
reasonable and leave postfix alone. When the message expires postfix will
notify the sender.

Terry





Re: Avoid recursive table lookup

2009-06-09 Thread Magnus Bäck
On Tuesday, June 09, 2009 at 09:02 CEST,
 Arnaud JAYET  wrote:

> i'm trying to set up a Vacation Mail Responder using postfix and
> special transport + PERL script.
> 
> i want to let users choose between :
> case 1 : automatic vacation responding and not delivrering the
> original message (message is lost)
> case 2 : automatic vacation responding and delivrering original
> message in their mailbox

[...]

> in vir_vacation i can have
> 
> case 1 :
> u...@domain.tld u...@autoreply.domain.tld
> 
> case 2:
> u...@domain.tld u...@autoreply.domain.tld,u...@domain.tld
> 
> in case 1, all is fine, original sender receives the automatic mail
> 
> but in case 2, PERL script is called twice (but the message is well
> delivered in user's mailbox) and so there is 2 automatic mail sent to
> original sender
> 
> how can avoid this "recursive" lookup in the table and sending
> automatic vacation message twice ?

This is a FAQ. You have a content filter and must disable the address
rewriting either before or after the filter. This is described in
FILTER_README, keyword receive_override_options.

http://www.postfix.org/FILTER_README.html
http://www.postfix.org/postconf.5.html#receive_override_options

[...]

-- 
Magnus Bäck
mag...@dsek.lth.se


Re: message_size_limit

2009-06-09 Thread Magnus Bäck
On Tuesday, June 09, 2009 at 19:37 CEST,
 Wietse Venema  wrote:

> Simon Schelkshorn:
>
> > I added a second listener in my master.cf. For this listener I added
> > the option message_size_limit=2048 to increase the maximum size
> > for emails sent via this additional listener.
> 
> You can't change the size limit for the SMTP server alone.
> It must be a main.cf setting.

Specifically, message_size_limit is enforced by cleanup(8). Adding
another cleanup(8) service with a different message_size_limit and
choosing it for this particular smtpd(8) with cleanup_service_name
should work.

-- 
Magnus Bäck
mag...@dsek.lth.se


Re: Restrict from domain based on sasl auth id

2009-06-09 Thread Magnus Bäck
On Tuesday, June 09, 2009 at 13:02 CEST,
 ram  wrote:

> We provide relay services for our clients.
>
> The clients mail-servers connect to our postfix servers , authenticate
> using a client-accountid and send the messages.
>
> I would like to restrict the from domains for every client.(Mainly to
> prevent inadvertent spam outbreaks)

http://www.postfix.org/postconf.5.html#smtpd_sender_login_maps

> Can I use smtplogin maps to allow  only a list of enumerated
> from-domains in the envelope senders
> 
> eg
> 
> /etc/postfix/smtploginmaps
> 
> accountid1*...@domain1.com,*...@domain2.com
> accountid2*...@domain3.com

No reason to guess the format of the sender login table when it's
documented.

@example.comaccountid1
@example.netaccountid1
@example.orgaccountid2

-- 
Magnus Bäck
mag...@dsek.lth.se


Re: Reputation based filtering...

2009-06-09 Thread Michael Orlitzky

EASY steve.h...@digitalcertainty.co.uk wrote:

Not sure regarding the Ironport, but I imagine it is just the same as
the Barracuda. The 'Reputation' is just an in-house rbl list and Yes,
Postfix does these very well indeed. Here I am making use of a few;

smtpd_recipient_restrictions =
...
reject_rbl_client zen.spamhaus.org
reject_rbl_client pbl.spamhaus.org
reject_rbl_client dnsbl.sorbs.net
reject_rbl_client b.barracudacentral.org


The PBL is contained within Zen [1]. There's no need to query it twice.

[1] http://www.spamhaus.org/zen/index.lasso


Re: transport

2009-06-09 Thread Victor Duchovni
On Tue, Jun 09, 2009 at 02:24:49PM -0300, Antonio Hooper wrote:

> > http://www.postfix.org/SOHO_README.html
> > Supporting multiple ISP accounts in the Postfix SMTP client
> 
> with transport, i do: master.cf:
> smtp_teste   unix  -   -   n   -   -   smtp  -o
> myhostname=mx.test.com
> 
> and call it based/destination in /etc/transport_maps.
> 
> thera one way to do it with sender based ?

You sender-based routing in Postfix, does NOT override the recipient
transport, that would be wrong. Instead, for remote delivery, sender-based
routing overrides the nexthop destination. See the link Ralf provided.

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


Re: message_size_limit

2009-06-09 Thread Wietse Venema
Magnus B?ck:
> On Tuesday, June 09, 2009 at 19:37 CEST,
>  Wietse Venema  wrote:
> 
> > Simon Schelkshorn:
> >
> > > I added a second listener in my master.cf. For this listener I added
> > > the option message_size_limit=2048 to increase the maximum size
> > > for emails sent via this additional listener.
> > 
> > You can't change the size limit for the SMTP server alone.
> > It must be a main.cf setting.
> 
> Specifically, message_size_limit is enforced by cleanup(8). Adding
> another cleanup(8) service with a different message_size_limit and
> choosing it for this particular smtpd(8) with cleanup_service_name
> should work.

But wait, there is more...

The queue manager and the delivery agents can be affected, too.
Depending on how mail gets into Postfix, recipient records may be
sitting at the end of a queue file, and when a delivery agent (or
queue manager) tries to mark a recipient as "done" they get into
trouble when their "message size limit" setting is too small.

That was one of the bugs that was introduced by the VDA patch,


Wietse


Re: Difficulty in making a SMTP relay with Postfix

2009-06-09 Thread Victor Duchovni
On Tue, Jun 09, 2009 at 07:29:38AM +0200, Ralf Hildebrandt wrote:

> > /etc/postfix/transport:
> > wemade.com  smtp:pop.wemade.com
> 
> wemade.com  [pop.wemade.com]

wemade.comsmtp:[pop.wemade.com]

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


Re: Restrict from domain based on sasl auth id

2009-06-09 Thread Victor Duchovni
On Tue, Jun 09, 2009 at 08:32:40PM +0200, Magnus B?ck wrote:

> > The clients mail-servers connect to our postfix servers , authenticate
> > using a client-accountid and send the messages.
> >
> > I would like to restrict the from domains for every client.(Mainly to
> > prevent inadvertent spam outbreaks)
> 
> http://www.postfix.org/postconf.5.html#smtpd_sender_login_maps

This will prevent forgery of "owned" addresses, but will not restrict
senders from choosing an "unowned" address. For that, one also needs an
access table, that limits senders to use one of the owned addresses.

# Only suitable for MSA systems, DO NOT DO this on inbound MX hosts
#
smtpd_sender_restrictions =
reject_sender_login_mismatch,
#
# MUST return OK for owned addresses, also allow "<>" if some
# of the MSA clients are MTAs for a set of domains, and can
# send bounces. Of course, MTAs can also forward email, which
# without SRS or other similar pain, will be rejected!
#
# This table lists the same addresses as sender_login_maps, with
# an RHS of "OK" instead of a list of login names.
#
check_sender_access cdb:/etc/postfix/sender_has_login,
#
# rejects remaining sender addresses.
#
reject

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


ldap and transports file

2009-06-09 Thread Kevin Sartorelli
Hi,
I have Postfix 2.5.6 on a server and having a problem with using an LDAP lookup 
as a transport map.   In my main.cf file I have:
 transport_maps = ldap:/etc/postfix/ldap-groupwise1.conf
My ldap-groupwise1.conf file looks like:
 version = 3
 domain = irdtest.govt.nz
 query_filter = (mail=%s)
 scope = sub
 timeout = 5
 search_base = o=IRDtest
 server_host = 10.40.40.60
 server_port = 389
 result_attribute = mail
 size_limit = 1
 result_format = relay:10.40.40.61
This works great if an email address exists for only one user in the LDAP 
directory:
 postmap -q kevin.sartore...@ird.govt.nz 
ldap:/etc/postfix/ldap-groupwise1.conf
 relay:10.40.40.61
However, when there is more than one account with the same email address I get:
 postmap -q kevin.sartore...@ird.govt.nz 
ldap:/etc/postfix/ldap-groupwise1.conf
 postmap: warning: dict_ldap_lookup: Search error 4: Size limit exceeded
Leaving out the 'size_limit' parameter from the file gives me:
 postmap -q kevin.sartore...@ird.govt.nz 
ldap:/etc/postfix/ldap-groupwise1.conf
 relay:10.40.40.61,relay:10.40.40.61
Which doesn't work too well ;-(
My reading of the ldap_table man page indicates that this will happen for the 
'expansion_limit' parameter, but not the 'size_limit' parameter.

Anyone have an idea how I can get my LDAP lookup to return only one record 
regardless of the number of accounts with the same email address?

Cheers
Kevin




Need to create a mail dead-end or "super" catch-all

2009-06-09 Thread Michael Glenney

I have a request from one of our developers and I want to see if I can
fulfill it with Postfix.

We have a services platform that has the ability to send out mail to
users.  We have a QA version of that platform that has an old copy of
user data for testing.  For now the SMTP relay option of the QA server
is set to a non-existent host so that mail will not get sent to users.
They would like the ability to test the mail without worrying that a
mail will get sent to one of the users.

I would like to setup a IMAP/SMTP server on the local host and enable
the application to send to it.  I need all mail, no matter who it is
addressed to, to be delivered to one account on the server that will be
accessed via IMAP.  The server can never relay out.  Any message that
comes in on port 25 gets put in this mailbox.

Is this something that can be done with Postfix?  I don't need any hand
holding but a punt in the right direction would certainly be helpful.

Thanks,

Mike G.


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Re: Need to create a mail dead-end or "super" catch-all

2009-06-09 Thread Wietse Venema
Michael Glenney:
> 
> I have a request from one of our developers and I want to see if I can
> fulfill it with Postfix.
> 
> We have a services platform that has the ability to send out mail to
> users.  We have a QA version of that platform that has an old copy of
> user data for testing.  For now the SMTP relay option of the QA server
> is set to a non-existent host so that mail will not get sent to users.
> They would like the ability to test the mail without worrying that a
> mail will get sent to one of the users.
> 
> I would like to setup a IMAP/SMTP server on the local host and enable
> the application to send to it.  I need all mail, no matter who it is
> addressed to, to be delivered to one account on the server that will be
> accessed via IMAP.  The server can never relay out.  Any message that
> comes in on port 25 gets put in this mailbox.
> 
> Is this something that can be done with Postfix?  I don't need any hand
> holding but a punt in the right direction would certainly be helpful.

/etc/postfix/main.cf:
virtual_alias_maps = static:u...@example.com

Wietse


Re: Limitations of setting mydestination with virtual domains

2009-06-09 Thread meyer-jordan
Hi Tim!

> /etc/postfix/virtual
> l...@example1.comlegg
> t...@example2.orglegg
> 
> 
> So I changed the main.cf to this
> /etc/postfix/main.cf
> mydestination = localhost
> virtual_alias_domains =  example1.com, genex.example1.com, 
> localhost.example1.com, example2.org, localhost.example2.org 
> genex.example2.org
> virtual_alias_maps = hash:/etc/postfix/virtual
> 
> Upon instating these changes, mail to l...@example1.com gets returned back.  
> User unknown in virtual alias table.
> 
> Any suggestions how this can be set up in a way that is proper, robust and 
> still delivers mail?

Do you've

example1.comanything
example2.comanything
(and so on)

in your /etc/postfix/virtual(.db)?


Hasso



Virtual Mailbox Domain

2009-06-09 Thread Mayuresh Kasture
Hello All,

For some reason, I want to set two mail servers on one machine. One of them
is Postfix. The setup is such that Postfix should receive mails at port 4567
and should send mails corresponding to domain "kmail4u.com" to port 25 of
the same machine where other mail server(coded by me) is waiting for
incoming mails.

I have installed and configured bind9 which properly associates domain
kmail4u.com with the IP address of the machine. And postfix listens to port
4567.

But, when I send a mail to port 4567 addressed to x...@kmail4u.com, I get a
delivery failure with message "mail for kmail4u.com loops back to myself"

This is a part of main.cf file which tries to set this domain as virtual
mailbox domain.

relay_domains = $mydomain gmail.com yahoo.co.in
virtual_transport = smtp:kmail4u.com:25
virtual_mailbox_domains = kmail4u.com
virtual_mailbox_maps = hash:/etc/postfix/vmailbox

And /etc/postfix/vmailbox contains,

@kmail4u.com

Can anybody suggest how I can achieve this set up?

Thanks,
Mayuresh


Re: ldap and transports file

2009-06-09 Thread Victor Duchovni
On Wed, Jun 10, 2009 at 10:10:17AM +1200, Kevin Sartorelli wrote:

> I have Postfix 2.5.6 on a server and having a problem with using an
> LDAP lookup as a transport map.   In my main.cf file I have:

"postconf -n" output generally preferred on this list.

>  transport_maps = ldap:/etc/postfix/ldap-groupwise1.conf

While my avoid transport(5) lookups over LDAP, so far so good, "proxy:"
is not helpful in the context of transport(5) lookups.

>  version = 3
>  domain = irdtest.govt.nz

This limits the lookup keys to just u...@domain forms in the specified
domain, are you sure that's what you want???

>  query_filter = (mail=%s)
>  scope = sub
>  timeout = 5
>  search_base = o=IRDtest
>  server_host = 10.40.40.60
>  server_port = 389
>  result_attribute = mail

Why would a user's email address ("mail" result attribute) be a useful
transport(5) table result?

>  size_limit = 1
>  result_format = relay:10.40.40.61

You are missing "[", "]" around the literal IP address.

The result format is independent of the lookup key, what is the point
of this?

> This works great if an email address exists for only one user in the
> LDAP directory:
>
> $ postmap -q kevin.sartore...@ird.govt.nz \
>   ldap:/etc/postfix/ldap-groupwise1.conf
> relay:10.40.40.61

Yes, but it should be:

relay:[10.40.40.61]

and really should come from the directory. Why not route the whole domain
this really via a simple indexed file transport table?

ird.govt.nz relay:[10.40.40.61]

LDAP does not add any value here, unless users not in the directory have
a different route...

> However, when there is more than one account with the same email address
> I get:

Why on earth are there multiple accounts with the same primary mail address?
Or is the "mail" attribute of the user in question multi-valued? (Also
not a good idea).

> $ postmap -q kevin.sartore...@ird.govt.nz \
>   ldap:/etc/postfix/ldap-groupwise1.conf
> postmap: warning: dict_ldap_lookup: Search error 4: Size limit exceeded
>
> Leaving out the 'size_limit' parameter from the file gives me:
>
> $ postmap -q kevin.sartore...@ird.govt.nz \
>  ldap:/etc/postfix/ldap-groupwise1.conf
> relay:10.40.40.61,relay:10.40.40.61
>
> Which doesn't work too well ;-(

Naturally.

> My reading of the ldap_table man page indicates that this will happen
> for the 'expansion_limit' parameter, but not the 'size_limit' parameter.

A limit is a limit.

> Anyone have an idea how I can get my LDAP lookup to return only one
> record regardless of the number of accounts with the same email address?

If you want a single result, use a query that always returns exactly
one value, meaning, exactly one matching "entry" with a *single-valued*
result attribute.

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


Re: ldap and transports file

2009-06-09 Thread Kevin Sartorelli
>>> On 10/06/2009 at 12:17 p.m., Victor Duchovni
 wrote:
> On Wed, Jun 10, 2009 at 10:10:17AM +1200, Kevin Sartorelli wrote:
> 
>>  domain = irdtest.govt.nz
> This limits the lookup keys to just u...@domain forms in the specified
> domain, are you sure that's what you want???
Yes

>>  result_attribute = mail
> Why would a user's email address ("mail" result attribute) be a useful
> transport(5) table result?
Maybe I don't need this at all then.  BUT if I don't have something here then I 
don't get anything returned.
>>  size_limit = 1
>>  result_format = relay:10.40.40.61
> You are missing "[", "]" around the literal IP address.
Ah, yes - fixed.
 
> The result format is independent of the lookup key, what is the point
> of this?
I want any user who is in the LDAP directory to be relayed to another machine.  
Any user not in the LDAP gets handled locally.

> and really should come from the directory. Why not route the whole domain
> this really via a simple indexed file transport table?
> 
>   ird.govt.nz relay:[10.40.40.61]
> 
> LDAP does not add any value here, unless users not in the directory have
> a different route...
Correct.  If they are in the LDAP directory then the mail should be directed to 
one point, otherwise it is handled locally.

>> However, when there is more than one account with the same email address
>> I get:
> Why on earth are there multiple accounts with the same primary mail address?
> Or is the "mail" attribute of the user in question multi-valued? (Also
> not a good idea).
Simple answer - user error.  There shouldn't be but I have no control over what 
goes into the LDAP directory.  While there shouldn't be any duplicate email 
addresses there are and I tripped over one in testing.   Guess I want to handle 
this case in a graceful manner rather than deferring until it is noticed or 
times out.

>> My reading of the ldap_table man page indicates that this will happen
>> for the 'expansion_limit' parameter, but not the 'size_limit' parameter.
> A limit is a limit.
I was hoping it would only return 1 entry rather than error if there was more 
than one.

>> Anyone have an idea how I can get my LDAP lookup to return only one
>> record regardless of the number of accounts with the same email address?
> If you want a single result, use a query that always returns exactly
> one value, meaning, exactly one matching "entry" with a *single-valued*
> result attribute.
OK, thanks.  Wish I had more control over the contents of the LDAP I have to 
look in.

Cheers
Kevin





Re: Virtual Mailbox Domain

2009-06-09 Thread Noel Jones

Mayuresh Kasture wrote:

Hello All,

For some reason, I want to set two mail servers on one machine. One of 
them is Postfix. The setup is such that Postfix should receive mails at 
port 4567 and should send mails corresponding to domain "kmail4u.com 
" to port 25 of the same machine where other mail 
server(coded by me) is waiting for incoming mails.


I have installed and configured bind9 which properly associates domain 
kmail4u.com  with the IP address of the machine. And 
postfix listens to port 4567.


But, when I send a mail to port 4567 addressed to x...@kmail4u.com 
, I get a delivery failure with message "mail 
for kmail4u.com  loops back to myself"


Please don't post in html.  On gmail, press the [Plain Text] 
button when composing.




This is a part of main.cf  file which tries to set this 
domain as virtual mailbox domain.


relay_domains = $mydomain gmail.com  yahoo.co.in 



Why in the world would you list gmail and yahoo as relay 
domains???  That makes you an open relay to any address at 
those domains.


Don't do that.

http://www.postfix.org/BASIC_CONFIGURATION_README.html
http://www.postfix.org/ADDRESS_CLASS_README.html



virtual_transport = smtp:kmail4u.com:25 
virtual_mailbox_domains = kmail4u.com 
virtual_mailbox_maps = hash:/etc/postfix/vmailbox

And /etc/postfix/vmailbox contains,

@kmail4u.com 

Can anybody suggest how I can achieve this set up?


The "loops back to myself" message is caused when postfix is 
greeted with its own hostname.  One instance needs a different 
hostname.


I fear the gun is pointing at your foot... Before pulling the 
trigger maybe you should describe your project in more detail.




Thanks,
Mayuresh


  -- Noel Jones


Re: Virtual Mailbox Domain

2009-06-09 Thread Mayuresh Kasture
Thanks a lot Noel for your reply.

I added gmail and yahoo as relay domains when I was playing around
with Postfix. I am new to postfix and am trying to understand it. So,
point is, I can live without gmail and yahoo being listed as relay
domains.

And about my project. It is an academic project. I want to use Postfix
as a relay server. I have implemented my own mail sender and receiver.
Sender sends mails to postfix and postfix relays them to receiver.
But, as of now, I don't want any network delays to be introduced.
Hence, I want all the three processes to be on the same machine.
Postfix listens on port 4567 and my mail receiver listens on port 25.
And kmail4u.com is just a random domain that I picked up(which
according to my knowledge was not in use by anybody at that time) and
made it point to the machine on which all three processes are present,
using bind9. I hope that explains you the project.

Is there any way I can achieve this?

- Mayuresh

On Tue, Jun 9, 2009 at 8:51 PM, Noel Jones  wrote:
>
> Mayuresh Kasture wrote:
>>
>> Hello All,
>>
>> For some reason, I want to set two mail servers on one machine. One of them 
>> is Postfix. The setup is such that Postfix should receive mails at port 4567 
>> and should send mails corresponding to domain "kmail4u.com 
>> " to port 25 of the same machine where other mail 
>> server(coded by me) is waiting for incoming mails.
>>
>> I have installed and configured bind9 which properly associates domain 
>> kmail4u.com  with the IP address of the machine. And 
>> postfix listens to port 4567.
>>
>> But, when I send a mail to port 4567 addressed to x...@kmail4u.com 
>> , I get a delivery failure with message "mail for 
>> kmail4u.com  loops back to myself"
>
> Please don't post in html.  On gmail, press the [Plain Text] button when 
> composing.
>
>>
>> This is a part of main.cf  file which tries to set this 
>> domain as virtual mailbox domain.
>>
>> relay_domains = $mydomain gmail.com  yahoo.co.in 
>> 
>
> Why in the world would you list gmail and yahoo as relay domains???  That 
> makes you an open relay to any address at those domains.
>
> Don't do that.
>
> http://www.postfix.org/BASIC_CONFIGURATION_README.html
> http://www.postfix.org/ADDRESS_CLASS_README.html
>
>
>> virtual_transport = smtp:kmail4u.com:25 
>> virtual_mailbox_domains = kmail4u.com 
>> virtual_mailbox_maps = hash:/etc/postfix/vmailbox
>>
>> And /etc/postfix/vmailbox contains,
>>
>> @kmail4u.com     
>>
>> Can anybody suggest how I can achieve this set up?
>
> The "loops back to myself" message is caused when postfix is greeted with its 
> own hostname.  One instance needs a different hostname.
>
> I fear the gun is pointing at your foot... Before pulling the trigger maybe 
> you should describe your project in more detail.
>
>>
>> Thanks,
>> Mayuresh
>
>  -- Noel Jones


Re: Limitations of setting mydestination with virtual domains

2009-06-09 Thread Victor Duchovni
On Fri, Jun 05, 2009 at 01:22:02AM +0200, meyer-jor...@t-online.de wrote:

> > /etc/postfix/main.cf
> > mydestination = localhost
> > virtual_alias_domains =  example1.com, genex.example1.com, 
> > localhost.example1.com, example2.org, localhost.example2.org 
> > genex.example2.org
> > virtual_alias_maps = hash:/etc/postfix/virtual
> > 
> > Upon instating these changes, mail to l...@example1.com gets returned back. 
> >  User unknown in virtual alias table.
> > 
> > Any suggestions how this can be set up in a way that is proper, robust and 
> > still delivers mail?
> 
> Do you've
> 
> example1.com  anything
> example2.com  anything
> (and so on)
> 
> in your /etc/postfix/virtual(.db)?

Not necessary or desirable when virtual_alias_domains is used. The user
in question needs to be listed in virtual_alias_maps, and resolve to an
address that is NOT in a virtual alias domain.

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


Re: ldap and transports file

2009-06-09 Thread Victor Duchovni
On Wed, Jun 10, 2009 at 12:42:12PM +1200, Kevin Sartorelli wrote:

> > Why on earth are there multiple accounts with the same primary mail address?
> > Or is the "mail" attribute of the user in question multi-valued? (Also
> > not a good idea).
>
> Simple answer - user error.  There shouldn't be but I have no control
> over what goes into the LDAP directory.  While there shouldn't be any
> duplicate email addresses there are and I tripped over one in testing.
> Guess I want to handle this case in a graceful manner rather than
> deferring until it is noticed or times out.

Sorry, there is no support in the Postfix LDAP driver for ignoring spurious
additional results.

> >> My reading of the ldap_table man page indicates that this will happen
> >> for the 'expansion_limit' parameter, but not the 'size_limit' parameter.
> > A limit is a limit.
>
> I was hoping it would only return 1 entry rather than error if there
> was more than one.

No, that would lead to unpredictable behaviour because the result order
is not specified. I know that in your case the result is independent of
returned value, but this special case is not specifically singled-out.

> > If you want a single result, use a query that always returns exactly
> > one value, meaning, exactly one matching "entry" with a *single-valued*
> > result attribute.
>
> OK, thanks.  Wish I had more control over the contents of the LDAP I
> have to look in.

LDAP server schemas in some cases have the ability to specify that certain
attributes must be unique across all entries. Administrator error can
be prevented if you make use of any support for such constraints.

We use LDAP, and don't have collisions of primary or secondary addresses
across users.

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


Re: Virtual Mailbox Domain

2009-06-09 Thread Victor Duchovni
On Tue, Jun 09, 2009 at 07:51:20PM -0500, Noel Jones wrote:

>> Can anybody suggest how I can achieve this set up?
>
> The "loops back to myself" message is caused when postfix is greeted with 
> its own hostname.  One instance needs a different hostname.

A loop is detected via any of these three mechanisms:

- Own hostname appears in the peer's "220 hostname ..." banner
- Own hostname appears in the peer's "250-hostname..." EHLO response
- The destination IP address is listed in $inet_interfaces or $proxy_addresses

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


Re: Virtual Mailbox Domain

2009-06-09 Thread Mayuresh Kasture
Thanks Victor. That is the information I required. Now, I am able to
setup mail servers the way I want. Thanks a lot for your help.

- Mayuresh

On Tue, Jun 9, 2009 at 10:31 PM, Victor
Duchovni wrote:
> On Tue, Jun 09, 2009 at 07:51:20PM -0500, Noel Jones wrote:
>
>>> Can anybody suggest how I can achieve this set up?
>>
>> The "loops back to myself" message is caused when postfix is greeted with
>> its own hostname.  One instance needs a different hostname.
>
> A loop is detected via any of these three mechanisms:
>
> - Own hostname appears in the peer's "220 hostname ..." banner
> - Own hostname appears in the peer's "250-hostname..." EHLO response
> - The destination IP address is listed in $inet_interfaces or $proxy_addresses
>
> --
>        Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> 
>
> If my response solves your problem, the best way to thank me is to not
> send an "it worked, thanks" follow-up. If you must respond, please put
> "It worked, thanks" in the "Subject" so I can delete these quickly.
>


conversation with gmail-smtp-in.l.google.com timed out while sending end of data

2009-06-09 Thread June Qiu

I can send short emails (1KB) from my mailserver (abc.domain.com) to gmail 
account (t...@gmail.com), but for larger emails (7KB), it fails. It gets 
deferred on the mail queue forever. But this same mail can be sent to yahoo.

Am I missing something?