Re: Attachments with email from command line?

2008-10-09 Thread mouss
Uwe Dippel a écrit : > mouss wrote: > >> or use Perl. >> >> use MIME::Lite; >> >> my $msg = MIME::Lite->new( >> From=> '[EMAIL PROTECTED]', >> To => '[EMAIL PROTECTED]', >> Cc => '[EMAIL PROTECTED], [EMAIL PROTECTED]', >> Subject => 'blah blah', >> Type=> 'mult

Re: About steps to setup virtual mailbox domain class

2008-10-09 Thread Stephen Liu
--- mouss <[EMAIL PROTECTED]> wrote: > >>> Debian Etch > >>> Postfix 2.3.8 > >>> Dovcot - snip - > >>> On /etc/postfix/mysql-virtual-mailbox-maps.cf > >>> user = mailuser > >>> password = mailuserpasswd > >>> hosts = 127.0.0.1 > >>> dbname = mailserver > >>> query = SELECT 1 FROM view_users WH

proxymap signal 11

2008-10-09 Thread J.P. Trosclair
Postfix's proxmap is segfaulting or at least that's what I think the signal 11 means. Some background info first: This is a fedora mail server (core 6) that I've upgraded to postfix 2.5.4. I used the rpm spec file from the last release of postfix on fc6 to build a rpm to upgrade with and also to

Re: Attachments with email from command line?

2008-10-09 Thread MrC
Uwe Dippel wrote: > Aside of hacks, I *think* that it might make sense to have a non-hacked > solution. As system administrators, we, at least I, send quite a number > of items with mail (cronjobs). > Therefore, IMHVHO, a tool distributed with *nix or *fix (wrapping around > mail) might be useful?

how to specify any/catch_all domain/email in HASH access map?

2008-10-09 Thread sftf
How to implement logic like below in one HASH map? pcre:/etc/postfix/maps/check_client: /mail\.ru/ DUNNO /yandex\.ru/ DUNNO /.*/ goto_check_class Thanks.

Re: Attachments with email from command line?

2008-10-09 Thread Uwe Dippel
mouss wrote: or use Perl. use MIME::Lite; my $msg = MIME::Lite->new( From=> '[EMAIL PROTECTED]', To => '[EMAIL PROTECTED]', Cc => '[EMAIL PROTECTED], [EMAIL PROTECTED]', Subject => 'blah blah', Type=> 'multipart/mixed' ); $msg->attach( Type => 'TE

Re: Attachments with email from command line?

2008-10-09 Thread mouss
Victor Duchovni a écrit : > On Thu, Oct 09, 2008 at 03:45:04PM -0400, James wrote: > > >> http://www.unix.com/how-do-i-send-email/ >> > > I would download mpack(1)/munpack(1) from CMU. The code is old and > one needs to remove a couple of spurious declarations of malloc() on > some systems.

Re: Attachments with email from command line?

2008-10-09 Thread Victor Duchovni
On Thu, Oct 09, 2008 at 03:45:04PM -0400, James wrote: > http://www.unix.com/how-do-i-send-email/ I would download mpack(1)/munpack(1) from CMU. The code is old and one needs to remove a couple of spurious declarations of malloc() on some systems. With mpack it is easy to send MIME encoded attac

Re: Attachments with email from command line?

2008-10-09 Thread James
On Thu, October 9, 2008 3:40 pm, [EMAIL PROTECTED] wrote: > Hello, > I'm currently sending 2 daily emails to my group at work using crontab > and the '/usr/lib/sendmail' command on a server running postfix 2.5.1. Is > there any way to add an attachment, in this case a excel spreadsheet? I've > had

Attachments with email from command line?

2008-10-09 Thread chas
Hello, I'm currently sending 2 daily emails to my group at work using crontab and the '/usr/lib/sendmail' command on a server running postfix 2.5.1. Is there any way to add an attachment, in this case a excel spreadsheet? I've had people tell me to use mutt but I'm having trouble changing the 'fr

Re: System stressed

2008-10-09 Thread Wietse Venema
Joey: > When I execute the following ps command utilizing the wide display this is > what I get > > 9550 ?S 0:00 smtpd -n smtp -t inet -u -o stress In your case, the command line can't tell you which it is. Instead, look for the warning message in the maillog file. See STRESS_READM

RE: System stressed

2008-10-09 Thread Joey
> -Original Message- > From: Wietse Venema [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 09, 2008 1:37 PM > To: Joey > Cc: postfix-users@postfix.org > Subject: Re: System stressed > > Joey: > > > Does it say "-o stress=" OR "-o stress=yes"? > > > The former means it has support but n

Re: System stressed

2008-10-09 Thread Victor Duchovni
On Thu, Oct 09, 2008 at 01:37:17PM -0400, Wietse Venema wrote: > "-o stress" means that the top command truncated the text. Use a wider > window or use "ps -w". This is system dependent. The command-line option processing code in single_server_main() modifies "optarg" as a side-effect of split_at

Re: System stressed

2008-10-09 Thread Wietse Venema
Joey: > > Does it say "-o stress=" OR "-o stress=yes"? > > The former means it has support but not using, the latter is USING. > > In TOP it says "smtpd -n smtp -t inet -u -o stress" > I just really want to know what this means, is the system under stress or not? > I'm not seeing delays or experien

RE: System stressed

2008-10-09 Thread Joey
> Subject: Re: System stressed > > Joey wrote: > > > > Hello All, > > > > I’m trying to understand this a little better. I read > > http://www.postfix.org/STRESS_README.html and have an ok idea about > > whats happening. > > > > I see several of these when watching top. > > > > smtpd -n smtp -t i

Re: Need *french* bounce_template_file for postfix 2.5.4

2008-10-09 Thread Bill Cole
[Reply-To set because this has become rather offtopic] Victor Duchovni wrote: On Wed, Oct 08, 2008 at 06:34:23PM -0400, Bill Cole wrote: Actually, there has long been a mechanism *in principle* for a multipart/alternative object to contain parts that differ by language, as described original

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Alvaro Marín
Hi again, I've upgraded to Debian Lenny's package: # postconf mail_version mail_version = 2.5.5 and the problem has dissapear :S Regards, -- Alvaro Marín Illera Hostalia Internet www.hostalia.com

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Alvaro Marín
Hi, >> 127.0.0.1 is configured on lo, as normaly. >> I've tried with all interfaces because I haven't results with lo. > > Quite odd indeed. I just did the same command on 2 of my mail filters and > got plenty of traffic related to sqlgrey and my antivirus. > > What OS are you running? # cat /

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Ralf Hildebrandt
* Brian Collins <[EMAIL PROTECTED]>: > > 127.0.0.1 is configured on lo, as normaly. > > I've tried with all interfaces because I haven't results with lo. > > Quite odd indeed. I just did the same command on 2 of my mail filters and > got plenty of traffic related to sqlgrey and my antivirus. >

RE: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Brian Collins
> 127.0.0.1 is configured on lo, as normaly. > I've tried with all interfaces because I haven't results with lo. Quite odd indeed. I just did the same command on 2 of my mail filters and got plenty of traffic related to sqlgrey and my antivirus. What OS are you running? --Brian

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Alvaro Marín
> You can use the "ifconfig" command to find out which interface is 127.0.0.1. 127.0.0.1 is configured on lo, as normaly. I've tried with all interfaces because I haven't results with lo. I've enabled debug_peer_list and this is the result: Oct 9 16:47:20 mailserver postfix/smtpd[9638]: connect

Re: Need *french* bounce_template_file for postfix 2.5.4

2008-10-09 Thread Victor Duchovni
On Wed, Oct 08, 2008 at 06:34:23PM -0400, Bill Cole wrote: > Actually, there has long been a mechanism *in principle* for a > multipart/alternative object to contain parts that differ by language, as > described originally in RFC1766 and now in less detail by its successor > RFC3282. I am not a

Re: System stressed

2008-10-09 Thread Brian Evans - Postfix List
Joey wrote: > > Hello All, > > > > I’m trying to understand this a little better. I read > http://www.postfix.org/STRESS_README.html and have an ok idea about > whats happening. > > > > I see several of these when watching top. > > smtpd -n smtp -t inet -u -o stress > > > > I can tell you w

Re: Checking the effect of chrooting services ...

2008-10-09 Thread Wietse Venema
Thomas Ackermann: > Hello, > i am running postfix 2.4.5 on a OpenSuse 10.3 Linux server. > > I think, i have done everything right to chroot most postfix service. > > But i cannot proove or even see this! > > > My main.cf contains the following: > > > smtpsinet n

Checking the effect of chrooting services ...

2008-10-09 Thread Thomas Ackermann
Hello, i am running postfix 2.4.5 on a OpenSuse 10.3 Linux server. I think, i have done everything right to chroot most postfix service. But i cannot proove or even see this! My main.cf contains the following: smtpsinet n - y - - smt

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Wietse Venema
Alvaro Mar?n: > Wietse Venema escribi?: > > Alvaro Mar?n: > >> Hello, > >> > >> I've these messages in logs: > >> > >> Oct 9 12:33:41 mailserver postfix/smtpd[3198]: connect from > >> localhost[127.0.0.1] > >> Oct 9 12:33:41 mailserver postfix/smtpd[3198]: lost connection after > >> CONNECT from

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Ralf Hildebrandt
* Alvaro Marín <[EMAIL PROTECTED]>: > > Then you made a mistake. > > > > What command did you use? > > > > Wietse > > tcpdump -n -i eth0 port 25 and host 127.0.0.1 127.0.0.1 is NOT on eth0 > tcpdump -n -i eth1 port 25 and host 127.0.0.1 127.0.0.1 is NOT on eth1, either > tcpdump -n -i

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Alvaro Marín
Wietse Venema escribió: > Alvaro Mar?n: >> Hello, >> >> I've these messages in logs: >> >> Oct 9 12:33:41 mailserver postfix/smtpd[3198]: connect from >> localhost[127.0.0.1] >> Oct 9 12:33:41 mailserver postfix/smtpd[3198]: lost connection after >> CONNECT from localhost[127.0.0.1] > ... >> If I

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Robert Schetterer
Wietse Venema schrieb: > Alvaro Mar?n: >> Hello, >> >> I've these messages in logs: >> >> Oct 9 12:33:41 mailserver postfix/smtpd[3198]: connect from >> localhost[127.0.0.1] >> Oct 9 12:33:41 mailserver postfix/smtpd[3198]: lost connection after >> CONNECT from localhost[127.0.0.1] > ... >> If I

Re: lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Wietse Venema
Alvaro Mar?n: > Hello, > > I've these messages in logs: > > Oct 9 12:33:41 mailserver postfix/smtpd[3198]: connect from > localhost[127.0.0.1] > Oct 9 12:33:41 mailserver postfix/smtpd[3198]: lost connection after > CONNECT from localhost[127.0.0.1] ... > If I use tcpdump to see what is happeni

lost connection after CONNECT from localhost[127.0.0.1]

2008-10-09 Thread Alvaro Marín
Hello, I've these messages in logs: Oct 9 12:33:41 mailserver postfix/smtpd[3198]: connect from localhost[127.0.0.1] Oct 9 12:33:41 mailserver postfix/smtpd[3198]: lost connection after CONNECT from localhost[127.0.0.1] Oct 9 12:33:41 mailserver postfix/smtpd[3198]: disconnect from localhost[1

Re: System stressed

2008-10-09 Thread Stefan Förster
* Joey <[EMAIL PROTECTED]> wrote: > I see several of these when watching top. > > smtpd -n smtp -t inet -u -o stress If Postfix was operating in stress mode, you would see "-o stress=yes". Ciao Stefan -- Stefan Förster http://www.incertum.net/ Public Key: 0xBBE2A9E9 25 Zeichen, daß Du

System stressed

2008-10-09 Thread Joey
Hello All, I'm trying to understand this a little better. I read http://www.postfix.org/STRESS_README.html and have an ok idea about whats happening. I see several of these when watching top. smtpd -n smtp -t inet -u -o stress I can tell you we get about 10K messages an hour on aver

Re: About steps to setup virtual mailbox domain class

2008-10-09 Thread mouss
Stephen Liu wrote: --- mouss <[EMAIL PROTECTED]> wrote: Stephen Liu wrote: Hi folks, Debian Etch Postfix 2.3.8 Dovcot I'm learning to setup "virtual mailbox domain class". Please shed me some light on its setup; [snip] On /etc/postfix/mysql-virtual-mailbox-maps.cf user = mailuser pas