Virtual domains, multiple IPs and e-mail authentication
Dear all, I have a Centos 5.2 server with Postfix 2.5.6. which handles mail for a couple of websites (virtual_mailbox_domains). Following Yahoo's and other ESPs suggestion, to send mail from different IPs, depending on their function, I would like to use 3 IPs (already set up on the server) to send out emails and also would like to sign them with both DKIM and Domainkeys. Based on your experience, I kindly ask for your suggestion, what would be the best solution to achieve this, considering the performance of the mail server. -- Attila Laszlo
Re: mailrelay - copy from all outgoing and incoming email
On Fri, November 20, 2009 7:13 am, post urne said: yes - thats right - now the mails will are stored in the lokal archive account - BUT now I get there 2 copies for one email. It seems to be, that this problem comes with use of amavisd-new as contentfilter. Is there a way, to save one mail only one time? This is a FAQ. You need to disable address rewriting either before or after the filter. See FILTER_README, keyword receive_override_options. -- Magnus Bäck mag...@dsek.lth.se
4KB of disk space burning on a single email
Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora
Re: 4KB of disk space burning on a single email
On Friday 20 November 2009 13:42:58 Arora, Sumit wrote: Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora My guess is that the filesystem has a block-size of 4KB. A file is stored over a set of blocks of this size. Which means that if a file is smaller then 4KB, it will still use a 4KB block. As far as I know, only reiserfs has the notailoption which will try to stick multiple smaller files into a single block. -- Joost
Re: 4KB of disk space burning on a single email
J. Roeleveld: On Friday 20 November 2009 13:42:58 Arora, Sumit wrote: Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora My guess is that the filesystem has a block-size of 4KB. A file is stored over a set of blocks of this size. Which means that if a file is smaller then 4KB, it will still use a 4KB block. As far as I know, only reiserfs has the notailoption which will try to stick multiple smaller files into a single block. 25 Years ago, the UFS file system came with large blocks (typ 8k) and small fragments (typ 1k). The tail fragments from different files could then share the same large block. In the mean time, the 8k blocksize has been replaced by larger blocksizes like 32k but the idea is the same: low fragmentation without wasting space. Wietse Marshall Kirk McKusick, William N. Joy, Samuel J. Leffler and Robert S. Fabry. A Fast File System for UNIX. Technical Report Computer Systems Research Group, Computer Science Division, Department of Electrical Engineering and Computer Science, University of California, Berkeley, Berkeley, CA 94720. http://www.cs.berkeley.edu/~brewer/cs262/FFS.pdf
RE: 4KB of disk space burning on a single email
You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. Is this any log or what I just have to stop consumption of any kind of disk space except mail logs. Please help -Sumit Arora -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of J. Roeleveld Sent: Friday, November 20, 2009 6:26 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On Friday 20 November 2009 13:42:58 Arora, Sumit wrote: Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora My guess is that the filesystem has a block-size of 4KB. A file is stored over a set of blocks of this size. Which means that if a file is smaller then 4KB, it will still use a 4KB block. As far as I know, only reiserfs has the notailoption which will try to stick multiple smaller files into a single block. -- Joost
A way to trace mails flow
Hi all, sometimes (...) I need to trace the complete flow of mails through postfix queues until the delivered to dovecot (including the clients connections/disconnections and obviously the operations execute by Mailscanner). Usually I trace it with tail -f mail.log grepping sender/receiver or message id but it's a little bit silly do it every days, I notice that I can't use pid to trace these actions. Exists a logview for postfix that do that? Or a way to associate an unique id to a mail process ? Best regards.
Re: 4KB of disk space burning on a single email
Arora, Sumit wrote: You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. Is this any log or what I just have to stop consumption of any kind of disk space except mail logs. Please help -Sumit Arora -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of J. Roeleveld Sent: Friday, November 20, 2009 6:26 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On Friday 20 November 2009 13:42:58 Arora, Sumit wrote: Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora My guess is that the filesystem has a block-size of 4KB. A file is stored over a set of blocks of this size. Which means that if a file is smaller then 4KB, it will still use a 4KB block. As far as I know, only reiserfs has the notailoption which will try to stick multiple smaller files into a single block. -- Joost Perhaps tell your mail client to compact the trash. That's what I have to do in Thunderbird, or else the files stay on the server. Dan Schaefer Web Developer/Systems Analyst Performance Administration Corp.
Re: 4KB of disk space burning on a single email
On Friday 20 November 2009 14:14:03 Arora, Sumit wrote: You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. Is this any log or what I just have to stop consumption of any kind of disk space except mail logs. Please help -Sumit Arora 4K on logs per email are quite a lot. Unless you have really verbose logging. Unless your system logger is duplicating messages over several logfiles? Possible places to look: /var/spool/. /tmp/ /var/tmp/ Maybe something leave temporary files, or maybe your postfix is keeping files in a spool-directory. Maybe try the following to see where additional files are placed: du / PRE-newemail.txt have postfix parse a few emails du / POST-newemail.txt Then do a diff on these 2 text-files to see which directories had an increase. Hopefully, this will reduce the possible locations to check for possible locations. -- Joost -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of J. Roeleveld Sent: Friday, November 20, 2009 6:26 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On Friday 20 November 2009 13:42:58 Arora, Sumit wrote: Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora My guess is that the filesystem has a block-size of 4KB. A file is stored over a set of blocks of this size. Which means that if a file is smaller then 4KB, it will still use a 4KB block. As far as I know, only reiserfs has the notailoption which will try to stick multiple smaller files into a single block. -- Joost
Re: A way to trace mails flow
On Friday 20 November 2009 14:15:16 Alessandro Fachin wrote: Hi all, sometimes (...) I need to trace the complete flow of mails through postfix queues until the delivered to dovecot (including the clients connections/disconnections and obviously the operations execute by Mailscanner). Usually I trace it with tail -f mail.log grepping sender/receiver or message id but it's a little bit silly do it every days, I notice that I can't use pid to trace these actions. Exists a logview for postfix that do that? Or a way to associate an unique id to a mail process ? Best regards. I could also use a tool like this. For me it's even more difficult as postfix appears to give emails a new ID after it gets the email back from amavis. -- Joost
[Fwd: Re: sender_bcc]
So I'm thinking about using sender_bcc_maps and header_checks to filter out some copies generated by bcc. How can I configure header_checks to work with two conditions? I want to filter messages that come from an address meant to go to one specific recipient. I want to do this using header_checks. how can I do this?
RE: 4KB of disk space burning on a single email
I'm really amazed... its maillog that is consuming 4KB on a simple 5-7 line logging for each email -Sumit Arora -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of J. Roeleveld Sent: Friday, November 20, 2009 6:51 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On Friday 20 November 2009 14:14:03 Arora, Sumit wrote: You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. Is this any log or what I just have to stop consumption of any kind of disk space except mail logs. Please help -Sumit Arora 4K on logs per email are quite a lot. Unless you have really verbose logging. Unless your system logger is duplicating messages over several logfiles? Possible places to look: /var/spool/. /tmp/ /var/tmp/ Maybe something leave temporary files, or maybe your postfix is keeping files in a spool-directory. Maybe try the following to see where additional files are placed: du / PRE-newemail.txt have postfix parse a few emails du / POST-newemail.txt Then do a diff on these 2 text-files to see which directories had an increase. Hopefully, this will reduce the possible locations to check for possible locations. -- Joost -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of J. Roeleveld Sent: Friday, November 20, 2009 6:26 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On Friday 20 November 2009 13:42:58 Arora, Sumit wrote: Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora My guess is that the filesystem has a block-size of 4KB. A file is stored over a set of blocks of this size. Which means that if a file is smaller then 4KB, it will still use a 4KB block. As far as I know, only reiserfs has the notailoption which will try to stick multiple smaller files into a single block. -- Joost
Re: 4KB of disk space burning on a single email
* Arora, Sumit sumit.ar...@hp.com: You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. How EXACTLY is the email being deleted ? -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de
Re: 4KB of disk space burning on a single email
On Friday 20 November 2009 14:38:50 Arora, Sumit wrote: I'm really amazed... its maillog that is consuming 4KB on a simple 5-7 line logging for each email -Sumit Arora How long are those lines? -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of J. Roeleveld Sent: Friday, November 20, 2009 6:51 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On Friday 20 November 2009 14:14:03 Arora, Sumit wrote: You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. Is this any log or what I just have to stop consumption of any kind of disk space except mail logs. Please help -Sumit Arora 4K on logs per email are quite a lot. Unless you have really verbose logging. Unless your system logger is duplicating messages over several logfiles? Possible places to look: /var/spool/. /tmp/ /var/tmp/ Maybe something leave temporary files, or maybe your postfix is keeping files in a spool-directory. Maybe try the following to see where additional files are placed: du / PRE-newemail.txt have postfix parse a few emails du / POST-newemail.txt Then do a diff on these 2 text-files to see which directories had an increase. Hopefully, this will reduce the possible locations to check for possible locations. -- Joost -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of J. Roeleveld Sent: Friday, November 20, 2009 6:26 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On Friday 20 November 2009 13:42:58 Arora, Sumit wrote: Hi folks, I'm just testing my postfix server for load and disk usage. I'm using content filter on some another server, and I don't feed the email back to postfix. Email data is getting deleted from my postfix server, but I don't know where 4KB of my disk space gone on every email my postfix server receives. If anybody have some idea, please tell me. -Sumit Arora My guess is that the filesystem has a block-size of 4KB. A file is stored over a set of blocks of this size. Which means that if a file is smaller then 4KB, it will still use a 4KB block. As far as I know, only reiserfs has the notailoption which will try to stick multiple smaller files into a single block. -- Joost
RE: 4KB of disk space burning on a single email
It's being passed for content filtering and email is not sent back to postfix. For postfix it's just mail forwarding -Sumit Arora -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Ralf Hildebrandt Sent: Friday, November 20, 2009 7:11 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email * Arora, Sumit sumit.ar...@hp.com: You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. How EXACTLY is the email being deleted ? -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de
Re: 4KB of disk space burning on a single email
On 11/20/2009 7:44 AM, Arora, Sumit wrote: It's being passed for content filtering and email is not sent back to postfix. For postfix it's just mail forwarding Amavisd-new (and probably other content filters too) keeps temporary files between messages to prevent creating new files every time a mail comes in. Sounds as if you're chasing a problem that doesn't exist. -- Noel Jones
RE: 4KB of disk space burning on a single email
I've checked the size of maillog It's size is getting increased by 4KB on receiving each email. Noel Jones, please read the other emails of this thread. -Sumit Arora -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Noel Jones Sent: Friday, November 20, 2009 7:20 PM To: postfix-users@postfix.org Subject: Re: 4KB of disk space burning on a single email On 11/20/2009 7:44 AM, Arora, Sumit wrote: It's being passed for content filtering and email is not sent back to postfix. For postfix it's just mail forwarding Amavisd-new (and probably other content filters too) keeps temporary files between messages to prevent creating new files every time a mail comes in. Sounds as if you're chasing a problem that doesn't exist. -- Noel Jones
About SMTP Auth with Mysql
Hello, I have multiple database which have username and pass informations I would like to use postfix as a centeral smtp auth server for all but something I can not do it log_level: 7 pwcheck_method: auxprop auxprop_plugin: sql mech_list: plain login sql_engine: mysql sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) sql_user: postfix sql_passwd: your-password sql_database: postfix sql_select: select clear from postfix_smtp where email='%...@%r' if I write down only sql_hostnames:212.58.4.184 or sql_hostnames:212.58.4.247 its working, but when I try to use sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) its not working From cyrus , I check that its okay and before I tested and it was working but right now no ! http://asyd.net/docs/cyrus-options.html sql_hostnamesSQL plugin Comma separated list of SQL servers (in host[:port] format). none (engine dependent) any experiance about related issue ? Regards Vahric
Re: 4KB of disk space burning on a single email
Arora, Sumit: I've checked the size of maillog It's size is getting increased by 4KB on receiving each email. We know what you believe. Now we would like to see some actual concrete evidence. Wietse
Re: 4KB of disk space burning on a single email
On 11/20/2009 7:53 AM, Arora, Sumit wrote: I've checked the size of maillog It's size is getting increased by 4KB on receiving each email. Noel Jones, please read the other emails of this thread. -Sumit Arora I did. All I see are unsupported top-posted claims. -- Noel Jones
Re: 4KB of disk space burning on a single email
On Friday 20 November 2009 14:53:58 Arora, Sumit wrote: I've checked the size of maillog It's size is getting increased by 4KB on receiving each email. Noel Jones, please read the other emails of this thread. -Sumit Arora The log-entries you sent me are nowhere near 4KB in size. How do you check that the maillog increases by 4KB per message? Did you use the suggested method to check where the increases all occur? It might easily be a collection of different logfiles and/or temp-files that are being kept. If it's a collection of different logfiles adding up to 4KB in size per email, then you might want to recheck your syslog-configuration. -- Joost
Re: 4KB of disk space burning on a single email
On Friday 20 November 2009 15:52:13 J. Roeleveld wrote: If it's a collection of different logfiles adding up to 4KB in size per email, then you might want to recheck your syslog-configuration. Probably pays to know what file system and mount options are applicable here as well. As I find it all too believable one could make a filesystem eat a block per distinct write these days. Now me, I get 24Kb of log file for every message delivered, but that includes messages about rejected spam :(
Re: About SMTP Auth with Mysql
On Fri, 20 Nov 2009 15:55:20 +0200 Vahriç Muhtaryan vah...@doruk.net.tr replied: Hello, I have multiple database which have username and pass informations I would like to use postfix as a centeral smtp auth server for all but something I can not do it log_level: 7 pwcheck_method: auxprop auxprop_plugin: sql mech_list: plain login sql_engine: mysql sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) sql_user: postfix sql_passwd: your-password sql_database: postfix sql_select: select clear from postfix_smtp where email='%...@%r' if I write down only sql_hostnames:212.58.4.184 or sql_hostnames:212.58.4.247 its working, but when I try to use sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) its not working From cyrus , I check that its okay and before I tested and it was working but right now no ! http://asyd.net/docs/cyrus-options.html sql_hostnamesSQL plugin Comma separated list of SQL servers (in host[:port] format). none (engine dependent) any experiance about related issue ? Maybe you should lose the opening/closing parentheses. -- Jerry postfix.u...@yahoo.com TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html Ya know, Quaker Oats make you feel good twice!
Re: 4KB of disk space burning on a single email
On Fri, Nov 20, 2009 at 04:01:56PM +, Simon Waters wrote: On Friday 20 November 2009 15:52:13 J. Roeleveld wrote: If it's a collection of different logfiles adding up to 4KB in size per email, then you might want to recheck your syslog-configuration. Probably pays to know what file system and mount options are applicable here as well. As I find it all too believable one could make a filesystem eat a block per distinct write these days. If the OP is measuring I/O rates, not disk storage, then the simplest explanation is failure to turn off synchronous syslog writes. FAQ (Linux syslog.conf for mail): mail.info -/var/log/maillog the - is not optional on systems that handle non-trivial volumes of email. -- 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: mailto:majord...@postfix.org?body=unsubscribe%20postfix-users 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.
postfix's sendmail equivalent to mailertable problem
Hi All, I am much of a newbie to postfix and need some help please. I know that what I am about to ask has been covered already on this list but I just can not get a head start. I am looking to have my postfix acting as a gateway for my exchange. On sendmail I know I would use mailertable, please help i am stuck
Re: postfix's sendmail equivalent to mailertable problem
Jason X, Maney wrote: Hi All, I am much of a newbie to postfix and need some help please. I know that what I am about to ask has been covered already on this list but I just can not get a head start. I am looking to have my postfix acting as a gateway for my exchange. On sendmail I know I would use mailertable, please help i am stuck Try: http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall
question concerning postfix from a n00b ;)
Hi, I am new to the arena of running my own mail server, and from the control panel that I was given, it seemed pretty straightfoward. Now, of course, I want to expand my ability. I run a couple of forums, and would like to be able to create a page where people can create their own email address, etc, without having to email me, and have me set it up for them with a temp pass for them to change the pass later. I can handle the php end of it (i think), but am curious if there is a command line to create a new user, with a particular password for a particular domain alias? James
Re: postfix's sendmail equivalent to mailertable problem
On Nov 20, 2009, at 11:12 AM, Jason X, Maney jsxmo...@gmail.com wrote: Hi All, I am much of a newbie to postfix and need some help please. I know that what I am about to ask has been covered already on this list but I just can not get a head start. I am looking to have my postfix acting as a gateway for my exchange. On sendmail I know I would use mailertable, please help i am stuck Have you read the docs? If so, which one's? How are you stuck? What have you tried? What occurred and how was that different from your expectations? Sorry for answering your questions with more questions, but please read the DEBUG_README before following up.
Re: question concerning postfix from a n00b ;)
On Nov 20, 2009, at 11:16 AM, James johnso...@gmail.com wrote: Hi, I am new to the arena of running my own mail server, and from the control panel that I was given, it seemed pretty straightfoward. Now, of course, I want to expand my ability. I run a couple of forums, and would like to be able to create a page where people can create their own email address, etc, without having to email me, and have me set it up for them with a temp pass for them to change the pass later. I can handle the php end of it (i think), but am curious if there is a command line to create a new user, with a particular password for a particular domain alias? This is not a Postfix question.
Re: postfix's sendmail equivalent to mailertable problem
On Fri, Nov 20, 2009 at 06:12:45PM +0200, Jason X, Maney wrote: I am much of a newbie to postfix and need some help please. I know that what I am about to ask has been covered already on this list but I just can not get a head start. I am looking to have my postfix acting as a gateway for my exchange. On sendmail I know I would use mailertable, please help i am stuck http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall Also read: http://www.postfix.org/BASIC_CONFIGURATION_README.html and finally: http://www.postfix.org/ADDRESS_REWRITING_README.html -- 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: mailto:majord...@postfix.org?body=unsubscribe%20postfix-users 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: question concerning postfix from a n00b ;)
On Fri, Nov 20, 2009 at 11:16:41AM -0500, James wrote: Hi, I am new to the arena of running my own mail server, and from the control panel that I was given, it seemed pretty straightfoward. Now, of course, I want to expand my ability. I run a couple of forums, and would like to be able to create a page where people can create their own email address, etc, without having to email me, and have me set it up for them with a temp pass for them to change the pass later. I can handle the php end of it (i think), but am curious if there is a command line to create a new user, with a particular password for a particular domain alias? You are confusing Postfix (an MTA) with an integrated group-ware system what includes a mailstore, group management, authentication credential management, ... Postfix has no users. MailStores: various IMAP servers, Exchange, ... have users. User provisioning for a fully integrated system requires more than just Postfix. You need to look for an integrated mailbox service that (if Postfix is a key feature for you) has Postfix at its undelying MTA, and associated management tooling for the complete system. -- 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: mailto:majord...@postfix.org?body=unsubscribe%20postfix-users 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: 4KB of disk space burning on a single email
On Friday 20 November 2009 17:01:56 Simon Waters wrote: On Friday 20 November 2009 15:52:13 J. Roeleveld wrote: If it's a collection of different logfiles adding up to 4KB in size per email, then you might want to recheck your syslog-configuration. Probably pays to know what file system and mount options are applicable here as well. As I find it all too believable one could make a filesystem eat a block per distinct write these days. Now me, I get 24Kb of log file for every message delivered, but that includes messages about rejected spam :( I also get quite a bit of logfile entries for every message, but that does include the filtering/redirecting/sieve/. stuff that's in there as well. If people want, I can repost the logentries the OP sent me, but they are pretty standard as far as I can tell. -- Joost
Re: 4KB of disk space burning on a single email
* J. Roeleveld jo...@antarean.org: The log-entries you sent me are nowhere near 4KB in size. How do you check that the maillog increases by 4KB per message? My guess is the mails are marked as deleted. Nothing more. They never get deleted, thus the space never gets free. Furthermore it's OT! -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de
Re: 4KB of disk space burning on a single email
Arora, Sumit wrote: You are right Joost, 4KB will be the block size... But my question is who is taking this disk space, because email is deleted already. Please show Postfix log entries showing the message being delivered to the content filter and successfully accepted and deleted as: Nov 20 13:41:10 wormhole postfix/lmtp[17080]: 81D9430101: to=te...@cnysupport.com, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.19/0/0/0.88, dsn=2.0.0 Nov 20 13:41:10 wormhole postfix/qmgr[5151]: 81D9430101: removed then try postcat -q queue id If it says: [r...@wormhole ~]# postcat -q 81D9430101 postcat: fatal: open queue file 81D9430101: No such file or directory then it's not a postfix problem. Terry
Relay and mynetworks
Hi, I always think that only hosts in mynetworks can do relay on my server, but... I created the following rule smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/dominios_permitidos, reject and put this on the dominios_permitidos map meudominio.com.br OK But when I do this, all hosts that use meudominio.com.br on the MAIL FROM command are allow to use my server to relay to the outside world. Even this host don't list on mynetworks. My main.cf file is following myhostname = r01.meudominio.com.br myorigin = $myhostname mydestination = local_recipient_maps = local_transport = error:Nao aceitamos entrega local mynetworks = 127.0.0.0/8 relay_domains = $mydestination inet_interfaces = all smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/dominios_permitidos, reject If I remove this last three lines the relay becomes close. Anyone knows how to restrict relay and only accept MAIL FROM my domain? Thanks for your attention!! Jerônimo
Re: Relay and mynetworks
On Fri, Nov 20, 2009 at 05:04:44PM -0200, Jeronimo wrote: Hi, I always think that only hosts in mynetworks can do relay on my server, but... I created the following rule smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/dominios_permitidos, reject This is a disasterously bad idea and turns you into an open relay. and put this on the dominios_permitidos map meudominio.com.br OK DO NOT do this. Restore smtpd_recipient_restrictions to its correct default value, and then start a new thread where you describe what problem motivated you do do this. If I remove this last three lines the relay becomes close. Anyone knows how to restrict relay and only accept MAIL FROM my domain? Set mynetworks correctly. Do NOTHING else. Postfix works correctly by default. What caused you to change the recipient restrictions? -- 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: mailto:majord...@postfix.org?body=unsubscribe%20postfix-users 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: Relay and mynetworks
I put the restriction on smtpd_recipient_restriction to log all attempts to send email. There is no difference to put this restriction on smtpd_sender_restriction. Only change the time that server rejects the message. I guess.. I chance the restriction because I want that only messages from mydomain pass through the relay. Thanks 2009/11/20 Victor Duchovni victor.ducho...@morganstanley.com On Fri, Nov 20, 2009 at 05:04:44PM -0200, Jeronimo wrote: Hi, I always think that only hosts in mynetworks can do relay on my server, but... I created the following rule smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/dominios_permitidos, reject This is a disasterously bad idea and turns you into an open relay. and put this on the dominios_permitidos map meudominio.com.br OK DO NOT do this. Restore smtpd_recipient_restrictions to its correct default value, and then start a new thread where you describe what problem motivated you do do this. If I remove this last three lines the relay becomes close. Anyone knows how to restrict relay and only accept MAIL FROM my domain? Set mynetworks correctly. Do NOTHING else. Postfix works correctly by default. What caused you to change the recipient restrictions? -- 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: mailto:majord...@postfix.org?body=unsubscribe%20postfix-users 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: Relay and mynetworks
Jeronimo: I chance the restriction because I want that only messages from mydomain pass through the relay. That is not what the configuration does. In reality, it forwards mail from anyone who sends mail with your domain name in the sender address. So put back the default smtpd_recipient_restrictions, and APPEND your sender access check AFTER reject_unauth_destination. Wietse Thanks 2009/11/20 Victor Duchovni victor.ducho...@morganstanley.com On Fri, Nov 20, 2009 at 05:04:44PM -0200, Jeronimo wrote: Hi, I always think that only hosts in mynetworks can do relay on my server, but... I created the following rule smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/dominios_permitidos, reject This is a disasterously bad idea and turns you into an open relay. and put this on the dominios_permitidos map meudominio.com.br OK DO NOT do this. Restore smtpd_recipient_restrictions to its correct default value, and then start a new thread where you describe what problem motivated you do do this. If I remove this last three lines the relay becomes close. Anyone knows how to restrict relay and only accept MAIL FROM my domain? Set mynetworks correctly. Do NOTHING else. Postfix works correctly by default. What caused you to change the recipient restrictions? -- 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: mailto:majord...@postfix.org?body=unsubscribe%20postfix-users 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.
Same address delivering to multiple mailboxes
This is by way of a sanity check; I believe something is not possible to do in Postfix without resorting to external code, but would be very pleased if I was proved wrong. Suppose I have a catchall delivery for a (virtual) domain into a mailbox: @domain = A I also have a couple of other addresses in the same domain delivering to their own mailboxes: p...@domain = B p...@domain = C So far so good, easy to set up and things work as expected. Now for the complication. In addition to the fully qualified addresses delivering to their own mailboxes I require a copy of this mail delivered into the catchall mailbox: p...@domain = B, A p...@domain = C, A Now, providing I'm prepared to do an address rewrite I can set this up as follows: virtual_alias_maps = hash:virtual_aliases virtual_mailbox_maps = hash:virtual_mailbox_recipients virtual_aliases: p...@domain p...@domain catch...@domain p...@domain p...@domain catch...@domain virtual_mailbox_recipients: @domain A p...@domain B p...@domain C The problem is that I don't want to see that rewrite to catch...@domain being done, because of just one more little complication. Instead of delivering to mailbox A, I want mail that would arrive there sent on to another MTA, so my configuration looks like this: virtual_alias_maps = hash:virtual_aliases virtual_mailbox_maps = hash:virtual_mailbox_recipients transport_maps = hash:transport virtual_aliases: p...@domain p...@domain catch...@domain p...@domain p...@domain catch...@domain virtual_mailbox_recipients: @domain OK p...@domain B p...@domain C transport: domain smtp:[MTA] p...@domain virtual p...@domain virtual If I allow that address rewite then mail for p...@domain or p...@domain will get sent on to the MTA with an envelope recipient address of catch...@domain rather than their original recipient address. I've tried various work arounds without success. The one that seems most natural, but which DOES NOT WORK, is the following: virtual_aliases: p...@domain @domain p...@domain p...@domain @domain p...@domain This results in mail for either address only arriving in their own mailbox. Is there another approach to this that I'm missing?
Multiple IPs
Hi all, I have a setup of postfix on fedora. I was wondering if there is a way to send emails in IP rotation as i have 5 IPs on my server. I have tried this http://denixsolutions.com/Scripts/Postfix-Multiple-Interfaces-Patch But it doesnt work. Rgds Kishore
RE: About SMTP Auth with Mysql
I tried without parentheses like 212.58.4.184:3306,212.58.4.247:3306 Also tried like this 212.58.4.184:3306 212.58.4.247:3306 -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Jerry Sent: Friday, November 20, 2009 6:05 PM To: postfix-users@postfix.org Subject: Re: About SMTP Auth with Mysql On Fri, 20 Nov 2009 15:55:20 +0200 Vahriç Muhtaryan vah...@doruk.net.tr replied: Hello, I have multiple database which have username and pass informations I would like to use postfix as a centeral smtp auth server for all but something I can not do it log_level: 7 pwcheck_method: auxprop auxprop_plugin: sql mech_list: plain login sql_engine: mysql sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) sql_user: postfix sql_passwd: your-password sql_database: postfix sql_select: select clear from postfix_smtp where email='%...@%r' if I write down only sql_hostnames:212.58.4.184 or sql_hostnames:212.58.4.247 its working, but when I try to use sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) its not working From cyrus , I check that its okay and before I tested and it was working but right now no ! http://asyd.net/docs/cyrus-options.html sql_hostnamesSQL plugin Comma separated list of SQL servers (in host[:port] format). none (engine dependent) any experiance about related issue ? Maybe you should lose the opening/closing parentheses. -- Jerry postfix.u...@yahoo.com TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html Ya know, Quaker Oats make you feel good twice!
Re: Multiple IPs
Kishore Buxani wrote: Hi all, I have a setup of postfix on fedora. I was wondering if there is a way to send emails in IP rotation as i have 5 IPs on my server. I have tried this http://denixsolutions.com/Scripts/Postfix-Multiple-Interfaces-Patch But it doesnt work. Rgds Kishore see this message: http://archives.neohapsis.com/archives/postfix/2009-11/0539.html -- Eero, RHCE
Re: About SMTP Auth with Mysql
* Vahriç Muhtaryan vah...@doruk.net.tr: I tried without parentheses like 212.58.4.184:3306,212.58.4.247:3306 Also tried like this 212.58.4.184:3306 212.58.4.247:3306 3306 is default for mysql. Try without. p...@rick -Original Message- From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] On Behalf Of Jerry Sent: Friday, November 20, 2009 6:05 PM To: postfix-users@postfix.org Subject: Re: About SMTP Auth with Mysql On Fri, 20 Nov 2009 15:55:20 +0200 Vahriç Muhtaryan vah...@doruk.net.tr replied: Hello, I have multiple database which have username and pass informations I would like to use postfix as a centeral smtp auth server for all but something I can not do it log_level: 7 pwcheck_method: auxprop auxprop_plugin: sql mech_list: plain login sql_engine: mysql sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) sql_user: postfix sql_passwd: your-password sql_database: postfix sql_select: select clear from postfix_smtp where email='%...@%r' if I write down only sql_hostnames:212.58.4.184 or sql_hostnames:212.58.4.247 its working, but when I try to use sql_hostnames: (212.58.4.184:3306,212.58.4.247:3306) its not working From cyrus , I check that its okay and before I tested and it was working but right now no ! http://asyd.net/docs/cyrus-options.html sql_hostnamesSQL plugin Comma separated list of SQL servers (in host[:port] format). none (engine dependent) any experiance about related issue ? Maybe you should lose the opening/closing parentheses. -- Jerry postfix.u...@yahoo.com TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html Ya know, Quaker Oats make you feel good twice! -- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explicitely required and justified. saslfinger (debugging SMTP AUTH): http://postfix.state-of-mind.de/patrick.koetter/saslfinger/