[00:09:06] *** raqamy has joined #postfix [00:10:56] *** amrit|zzz is now known as amrit|wrk [00:11:25] *** knoba has quit IRC [00:11:36] *** knoba has joined #postfix [00:12:15] *** sepski has quit IRC [00:13:59] *** shadou has joined #postfix [00:14:02] *** Roobarb has quit IRC [00:14:22] *** Roobarb has joined #postfix [00:19:39] *** felipe_ has quit IRC [00:21:28] *** dj-fu has quit IRC [00:21:40] *** dj-fu has joined #postfix [00:27:50] *** Mazon is now known as mazon [00:30:25] *** hparker has joined #postfix [00:32:13] *** HKhan has left #postfix [00:35:26] *** shadou has quit IRC [00:35:41] *** shadou has joined #postfix [00:35:48] *** shadou has quit IRC [00:38:24] *** rmayorga has quit IRC [00:40:55] *** rmayorga has joined #postfix [00:42:04] *** dj-fu has quit IRC [00:43:25] *** pirho has quit IRC [00:56:13] *** hemry_ has quit IRC [01:03:30] *** higuita has quit IRC [01:11:51] *** kreg has quit IRC [01:14:03] *** Roobarb has quit IRC [01:14:22] *** Roobarb has joined #postfix [01:39:34] *** ahod has joined #postfix [01:41:24] *** ahod has left #postfix [01:42:43] *** dj-fu has joined #postfix [01:44:26] *** higuita has joined #postfix [01:44:34] *** sean_micken has left #postfix [01:58:02] *** raqamy has quit IRC [01:59:20] *** timotiCK has left #POSTFIX [02:03:24] *** raqamy has joined #postfix [02:11:41] *** dj-fu has quit IRC [02:14:02] *** Roobarb has quit IRC [02:14:22] *** Roobarb has joined #postfix [02:31:33] *** misc-- has quit IRC [02:41:46] *** vnm has joined #postfix [02:43:39] *** bugz__ has joined #postfix [02:45:55] *** dj-fu has joined #postfix [02:47:08] *** magyar has joined #postfix [02:56:49] *** bugz_ has quit IRC [03:01:26] *** vn has quit IRC [03:08:45] *** xpoint has joined #postfix [03:10:04] *** Mez has quit IRC [03:10:33] *** Tachy has joined #postfix [03:13:10] *** Ryushin has quit IRC [03:14:02] *** Roobarb has quit IRC [03:14:22] *** Roobarb has joined #postfix [03:16:14] *** stonith has quit IRC [03:24:05] *** Tachy_ has quit IRC [03:27:38] *** hosler has joined #postfix [03:28:03] <hosler> How do i clear the mail queue in freebsd? [03:28:23] *** nictuku has joined #postfix [03:41:34] <xpoint> hosler, postfix flush [03:41:55] *** jengelh has left #postfix [03:42:21] <xpoint> hosler, or realy delete ?, postsuper -d ALL && postfix reload [03:44:55] <hosler> i just went ahead and manually deleted them int he queue directory [03:51:44] *** rmayorga has quit IRC [03:59:51] *** dj-fu has quit IRC [04:00:03] *** dj-fu has joined #postfix [04:02:21] *** shadou has joined #postfix [04:14:02] *** Roobarb has quit IRC [04:14:20] *** amrit|wrk is now known as amrit|afk [04:14:21] *** Roobarb has joined #postfix [04:19:49] *** nictuku has quit IRC [04:19:52] *** dj-fu has quit IRC [04:20:08] *** dj-fu has joined #postfix [04:20:11] *** doomas_ has joined #postfix [04:24:34] *** hosler has left #postfix [04:25:18] *** doomas has quit IRC [04:28:22] *** TheOutlander has joined #postfix [04:32:54] *** Motoko-chan has joined #postfix [04:35:36] *** shadou has quit IRC [04:42:57] <magyar> hi, i am using "relayhost = somehost.com". I anly want to relay one domain through this host. How is it possible? [05:14:02] *** Roobarb has quit IRC [05:14:22] *** Roobarb has joined #postfix [05:16:02] *** esr_ has joined #postfix [05:16:24] <esr_> Anybody home? [05:17:11] *** Mavvie has quit IRC [05:22:41] *** hparker has quit IRC [05:24:22] *** Mavvie has joined #postfix [05:24:42] *** Mavvie has quit IRC [05:25:02] *** Mavvie has joined #postfix [05:28:07] *** hparker has joined #postfix [05:37:45] <rob0> I'm not home. [05:38:10] <rob0> magyar: You want transport_maps not relayhost. [05:40:42] *** rmayorga has joined #postfix [05:48:33] *** amrit|afk is now known as amrit [05:55:20] <f3ew> esr_ maybe [05:57:36] *** timotiCK has joined #POSTFIX [06:05:53] <magyar> rob0: thanks [06:14:02] *** Roobarb has quit IRC [06:14:02] *** dj-fu is now known as fujin [06:14:22] *** Roobarb has joined #postfix [06:15:48] *** xbaez has joined #postfix [06:20:17] *** timotiCK has quit IRC [06:42:27] *** bugz__ has quit IRC [06:43:00] *** bugz_ has joined #postfix [06:45:14] *** hparker has quit IRC [07:02:26] *** fujin has quit IRC [07:08:01] *** magyar has quit IRC [07:14:02] *** Roobarb has quit IRC [07:14:22] *** Roobarb has joined #postfix [07:30:22] *** xpoint has quit IRC [07:31:44] *** openmax71 has quit IRC [07:51:49] *** f3ew has quit IRC [08:02:31] *** rmayorga has quit IRC [08:14:02] *** Roobarb has quit IRC [08:14:23] *** Roobarb has joined #postfix [08:23:00] *** keanne has joined #postfix [08:28:49] *** TheOutlander has quit IRC [08:31:56] *** f3ew has joined #postfix [08:33:05] *** Tino has joined #postfix [08:35:15] *** mooch has quit IRC [08:36:43] *** TheOutlander has joined #postfix [08:46:21] *** memetic has quit IRC [08:46:28] *** memetic has joined #postfix [08:54:54] *** Tino has quit IRC [08:57:15] *** af_ has joined #postfix [08:59:00] *** Tino has joined #postfix [09:06:53] *** VictorE has joined #postfix [09:06:54] *** x-spec-t has quit IRC [09:11:42] *** Motoko-chan has quit IRC [09:14:03] *** Roobarb has quit IRC [09:14:22] *** Roobarb has joined #postfix [09:14:27] *** mazon is now known as Mazon [09:14:40] *** rootsvr has joined #postfix [09:17:42] *** [miles] has joined #postfix [09:37:27] *** bostik has joined #postfix [09:40:01] *** f3ew has quit IRC [09:41:10] *** GMFlash has quit IRC [09:41:12] *** f3ew has joined #postfix [09:41:19] *** GMFlash has joined #postfix [09:45:42] *** frennkie has joined #postfix [09:46:08] *** amrit is now known as amrit|zzz [09:46:57] *** taube is now known as Taube [09:48:14] *** f3ew has quit IRC [09:54:04] *** f3ew has joined #postfix [09:56:30] *** f3ew has joined #postfix [10:01:30] *** f3ew has joined #postfix [10:02:20] *** f3ew has quit IRC [10:02:27] *** war has joined #postfix [10:03:31] *** f3ew has joined #postfix [10:03:48] *** f3ew has quit IRC [10:06:36] *** GMFlash has quit IRC [10:10:54] *** bostik has quit IRC [10:14:05] *** Roobarb has quit IRC [10:14:24] *** Roobarb has joined #postfix [10:26:06] *** Jax has joined #postfix [10:30:22] *** cutmasta has joined #postfix [10:32:05] *** mastachand has joined #postfix [10:35:16] *** bostik has joined #postfix [10:37:43] *** af_ has quit IRC [10:47:40] *** TheOutlander has quit IRC [10:55:54] <sid3windr> I have configured aliases via ldap, and postfix can resolve them fine. Now I want to use cyrus to deliver the mail, but it keeps getting delivered to the localpart before the @ instead of the local username... (${user} and ${recipient} contain the email the mail was sent to, not the local username resolved via ldap aliases) any tips? [11:01:24] *** noetik has joined #postfix [11:02:00] <sid3windr> ok, had to put it in virtual_alias_maps ofcourse. fixed. :-) [11:04:16] *** limed has joined #postfix [11:14:01] *** Roobarb has quit IRC [11:14:21] *** Roobarb has joined #postfix [11:15:45] *** Zeit|awy has quit IRC [11:22:50] *** WorkRoey has quit IRC [11:24:54] <frennkie> Hi, can I identfiy mails that are delievered from an authenticated user via smtp (when they're one dial-up IP, -> so i can't use mynetwork) ? [11:25:01] <frennkie> and how ;-) [11:40:40] *** rootsvr has quit IRC [11:44:08] *** sn00p- has quit IRC [11:46:59] *** rootsvr has joined #postfix [11:47:28] *** Zeit|idle has joined #postfix [11:54:08] *** Lap_64 has joined #postfix [12:01:08] *** ashd has joined #postfix [12:14:02] *** Roobarb has quit IRC [12:14:22] *** Roobarb has joined #postfix [12:15:53] *** Jax has quit IRC [12:18:18] *** meandtheshell has quit IRC [12:23:12] *** f3ew has joined #postfix [12:40:13] *** f3ew has quit IRC [12:43:10] *** f3ew has joined #postfix [12:48:17] *** prebur has quit IRC [12:50:12] *** rootsvr has quit IRC [12:50:26] *** ashd has quit IRC [12:50:56] *** ashd has joined #postfix [12:52:59] *** Taube is now known as taube [12:53:22] *** taube is now known as Taube [12:58:39] *** nescius has quit IRC [13:08:30] *** Mez has joined #postfix [13:10:03] *** cpm has quit IRC [13:14:02] *** Roobarb has quit IRC [13:14:21] *** Roobarb has joined #postfix [13:16:15] *** raqamy has quit IRC [13:22:40] *** ashd has quit IRC [13:23:48] *** dman has joined #postfix [13:24:43] <dman> i need to setup postifx to allow recpients to local domains only from anywhere, but recipients for foregin domains to only come from local networks or from authenticated clients [13:24:44] <dman> via sasl [13:27:40] *** tiagonux has joined #postfix [13:28:07] *** noetik has quit IRC [13:28:39] <f3ew> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination [13:30:17] <dman> atm i have [13:30:18] <dman> smtpd_sasl_auth_enable = yes [13:30:19] <dman> smtpd_sasl_security_options = noanonymous [13:30:19] <dman> smtpd_recipient_restrictions = permit_sasl_authenticated [13:32:13] *** RT_852 is now known as RT^ [13:33:21] *** dman_ has joined #postfix [13:33:33] <dman_> May 9 21:00:08 raphael postfix/smtpd[31468]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit [13:33:36] <dman_> is the error i'm getting [13:33:47] <f3ew> SET THIS =====> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination [13:34:36] <dman_> i have that [13:34:38] <dman_> in my config [13:34:47] <f3ew> no you don't [13:35:02] <f3ew> smtpd_recipient_restrictions = permit_sasl_authenticated <> smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination [13:35:14] <f3ew> ALL THREE PARAMTERS [13:36:24] <dman_> sorry yeah, i put that in [13:36:27] <dman_> restarted postfix [13:36:30] <dman_> and still getting above error [13:36:43] <f3ew> postconf smtpd_recipient_restrictions says what? [13:36:52] <f3ew> you may have that parameter defined twice [13:37:09] <dman_> oh, yeah my distro already did [13:37:11] <dman_> damn it [13:37:20] <f3ew> Heh [13:39:40] <dman_> some new errors :) [13:39:41] <dman_> May 9 21:08:45 raphael postfix/smtpd[31786]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory [13:39:41] <dman_> May 9 21:08:45 raphael postfix/smtpd[31786]: warning: SASL authentication problem: unknown password verifier [13:41:23] <f3ew> fix your authentication [13:45:24] <dman_> is there postfix options to do that? [13:46:49] *** pmjdebruijn has joined #postfix [13:50:47] *** beanz has joined #postfix [13:51:16] <beanz> Is there a postfix command to create the directories that live beneath /var/spool/postfix/ ? [13:52:42] *** macsim has joined #postfix [13:52:43] *** dman has quit IRC [13:55:22] *** eye69 has quit IRC [13:56:09] *** master_o1_master has joined #postfix [13:58:56] *** havoc has joined #postfix [13:59:04] <havoc> good morning, and help :( [13:59:14] *** macsim has quit IRC [13:59:24] *** eye69 has joined #postfix [13:59:27] <havoc> just moved everything over from a deb stable/testing machine to a fresh stable etch install .... [13:59:35] <havoc> can't get postfix to start now :( [13:59:43] <f3ew> beanz just start Postfix [13:59:53] <havoc> ...still looking for any logs/erros as to why [14:00:01] <f3ew> dman_ sasl fixing isn't a postfix configuration issue [14:00:05] <beanz> f3ew: it doesn't create them. [14:00:13] <f3ew> havoc /usr/sbin/postfix check [14:00:27] <havoc> f3ew: good idea [14:00:27] <f3ew> beanz, postfix create-directories [14:00:45] <beanz> f3ew: there is no postfix create-directories [14:00:46] <f3ew> oops [14:00:55] <f3ew> postfix check says what? [14:01:21] <beanz> nothing at all [14:01:23] <beanz> no error [14:01:32] <f3ew> hmmm [14:01:47] <f3ew> beanz /usr/sbin/postfix start says what? [14:01:52] *** chiwawa_42 has quit IRC [14:01:58] <f3ew> Is something else listening on port 25? [14:02:03] *** hparker has joined #postfix [14:02:11] <beanz> * Starting Postfix Mail Transport Agent postfix [ ok ] [14:02:19] <beanz> nope, just postfix after I start it [14:02:20] <dman_> im getting [14:02:22] <dman_> May 9 21:29:02 raphael postfix/smtpd[32024]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory [14:02:27] <dman_> but its authing my imap server ok [14:02:30] <dman_> so im not sure why [14:02:33] <f3ew> dman_ turn off the chroot in master.cf [14:02:44] <beanz> I could cp -r /srv/mail/postfix but I want to do what postfix does when it first runs [14:02:44] <f3ew> beanz, that's the startup script [14:02:48] <dman_> im not using a chroot i dont think [14:02:57] <f3ew> not /etc/init.d/postfix, use /usr/sbin/postfix [14:03:28] <beanz> f3ew: no probs either [14:04:39] <f3ew> what is your queue_directory set to? [14:04:44] <f3ew> dman_ which distro? [14:04:56] <dman_> ubuntu [14:05:02] <beanz> to /srv/mail/queue1 [14:05:57] <f3ew> dman_ then you are chrooted [14:06:03] <f3ew> see master.cf, 5th column [14:06:20] <f3ew> beanz then your directories will be created under /srv/mail/queue1/ [14:06:26] <dman_> what do i unchroot [14:06:32] <beanz> f3ew: but they aren't, that's the problem... [14:06:41] <f3ew> ummmm? [14:06:43] <havoc> ack, got postfix working, now to make courier work :( [14:06:46] <f3ew> dman_ everything [14:07:14] <dman_> so how do i change it [14:07:17] <beanz> ah [14:07:24] <beanz> one moment [14:07:27] <f3ew> wait [14:07:30] <f3ew> no [14:07:34] <f3ew> ignore that [14:07:39] <f3ew> ignore the wait [14:08:01] *** master_of_master has quit IRC [14:09:40] *** noetik has joined #postfix [14:10:05] <beanz> f3ew: pebkac [14:10:08] <beanz> f3ew: sorry [14:10:15] <f3ew> heh [14:10:15] *** TheOutlander has joined #postfix [14:10:15] <havoc> getting: couriertcpd: chdir blah.org/user/: Permission denied [14:10:31] <f3ew> havoc, uid/gid mismatch somewhere [14:11:24] <havoc> you'd think [14:11:58] <havoc> but it seems to be runnign as root (another issue altogether for later) [14:12:16] <dman_> so how do i fix this? [14:12:25] <dman_> i did testsaslauthd and it returned success [14:12:28] <dman_> so its not the authd's fault [14:12:31] <frennkie> is there any way to treat mails that are coming from authenticated (smtp) clients differently than others.. [14:12:57] <havoc> and there seems to no longer be a postfix-tls deb package [14:13:09] <f3ew> TLS is merged nto main [14:13:16] <havoc> ok, tis what I thought [14:13:21] <havoc> f3ew: thanks for the confirmation [14:13:24] <f3ew> havoc Courier imapd will switch users [14:13:31] <f3ew> post authentication [14:13:41] <f3ew> dman_ EDIT MASTER.CF [14:13:45] <havoc> I just wish I knew which user it was truing to be [14:13:54] <havoc> trying [14:14:02] *** Roobarb has quit IRC [14:14:05] <f3ew> frennkie, use a listener on the submission port and use -o options? [14:14:16] <f3ew> havoc DEBUG=2 in imapd.conf [14:14:22] *** Roobarb has joined #postfix [14:14:23] <havoc> thanks [14:16:02] <dman_> f3ew: what do i do to it [14:16:31] <f3ew> edit the 5th column? [14:16:35] <f3ew> titled chroot? [14:16:57] <dman_> of what service [14:19:53] *** wintix has joined #postfix [14:20:03] <havoc> f3ew: no go on the logging, I changed DEBUG_LOGIN to 2 [14:20:14] <f3ew> Just DEBUG [14:20:21] <f3ew> ALL of then @ dman_ [14:20:22] <havoc> still just getting permission denied on chdir by couriertcpd [14:20:25] <f3ew> bbiab, meeting [14:20:34] <havoc> f3ew: I tried that too and got nothing [14:24:20] <wintix> hmm. the link nixcartel.org/~devdas/postfix.html in the topic gives a 404 error. [14:27:43] *** beanz has quit IRC [14:29:48] <wintix> Signum -^ [14:30:14] <havoc> ok, this is not good :( [14:31:26] *** TheOutlander has quit IRC [14:36:03] <havoc> bah, just did: chmod -R o+rwX /var/mail/virtual/ to get things working :( [14:36:15] <havoc> still not "fixed", but at least "working" for the moment [14:40:39] <wintix> is it possible to pipe incoming mail through spamassassin without changing the rest of the mail setup? [14:43:55] *** dman has joined #postfix [14:44:43] *** noetik has quit IRC [14:48:11] *** esr_ has quit IRC [14:56:16] *** Ryushin has joined #postfix [15:01:33] *** dman_ has quit IRC [15:08:53] *** meandtheshell has joined #postfix [15:12:58] *** ESR_ has joined #postfix [15:13:39] *** af_ has joined #postfix [15:14:02] *** Roobarb has quit IRC [15:14:22] *** Roobarb has joined #postfix [15:16:00] <ESR_> Hi, I'm looking for help setting up Postfix under Ubuntu Feisty Fawn. Following the directions in the howto at https:// //help.ubuntu.com/community/PostfixAmavisNew has not led to the expected result. [15:16:03] *** GeorgeS069 has joined #postfix [15:17:43] *** cilly has joined #postfix [15:29:38] *** mindcooker has quit IRC [15:38:27] *** dman_ has joined #postfix [15:44:20] *** havoc has quit IRC [15:45:27] *** KenSentMe has joined #postfix [15:46:49] <KenSentMe> I [15:46:55] *** werewolf has joined #postfix [15:48:30] <KenSentMe> I've install postfix on my remote server using this tutorial. http://workaround.org/articles/ispmail-sarge/ . I try to send mail with Evolution using the postfix installation as smtp server. However i always get 'Connection refused' in Evolution no matter what hostname or ip i use for the smtp server. Also nothing shows up in the logs. Any idea what i can do to solve this? [15:55:52] *** af_ has quit IRC [15:56:12] *** Mazon is now known as mazon [15:56:43] <werewolf> KenSentMe: evolution ad postfix are on the same machine? [15:57:06] <KenSentMe> werewolf, no, postfix is on a server outside my network [15:57:43] *** dman has quit IRC [15:58:14] <hparker> Sounds like some SASL and maybe submission port needed [15:59:43] *** __bmgz__ has joined #postfix [16:00:24] <KenSentMe> hparker, how can i check that? [16:00:31] *** noetik has joined #postfix [16:00:53] <hparker> You define submission in master.cf, SASL in main.cf.. saslfinger to test it [16:02:19] <__bmgz__> I am having problems with postfix on Debian Sarge, I upgraded a couple of packages the other day (to 3.1 Release 5), now I have a delay when sending mail, the mail clients hang for about 5 seconds, but if i send another mail right away, the message is sent instantly, so I assume this is dns related problem? (i am using dnsmasq) [16:02:29] *** werewolf has left #postfix [16:07:17] *** riz_ has joined #postfix [16:08:19] <rob0> ESR_: We'll need a more detailed problem description, perhaps in a pastebin. A gratuitous WAG for you: chroot. See the !debug link: [16:08:24] <rob0> !debug [16:08:25] <knoba> rob0: 'debug' : http://www.postfix.org/DEBUG_README.html : a good starting point for how to deal with problems and to report information to those who might help. Post your information in a pastebin such as http://pastebin.com/ or http://rafb.net/paste/ . [16:09:11] <rob0> KenSentMe: sounds like a firewall blockage. [16:09:36] <KenSentMe> hparker, it seems like there's a problem with saslauthd. It wont start using /etc/init.d/saslauthd start. I get (failed) [16:10:04] <hparker> Check what rob0 brought up as well [16:10:04] <KenSentMe> rob0, how can i check that? [16:10:17] <rob0> "Connection refused" means your client isn't even getting to the server. [16:10:37] <ESR_> rob0: Reading the document now. I'm pretty sure I'm not seing chroot problems. [16:10:44] <rob0> Both issues will need to be addressed. [16:11:14] <riz_> Excuse me, I followed this howto http://workaround.org/articles/ispmail-sarge/index.shtml.en for install postfix with mysql support and other feature. But I have a doubt regarding the virtual user adding. I've to add in in mysql table, and it's ok but I've to create manually the /home/vmail/domains/user folder on filesystem [16:11:36] <riz_> is there a way to do everything automatically ? [16:12:13] <hparker> First email sent to the account should create it [16:12:57] <riz_> hparker yes, but only the inbox folder, not sent folder for example [16:13:11] <riz_> or better [16:13:16] <hparker> That's up to your IMAP server [16:13:47] <riz_> first mail create /home/vmail/domain/users/<imap structure> [16:14:02] *** Roobarb has quit IRC [16:14:03] <KenSentMe> rob0, if there was something with the firewall, iptables -L would have showed it right? [16:14:17] <riz_> but if I don't create /home/vmail/domain/user before receiving mail [16:14:21] <riz_> it doesn't works [16:14:22] *** Roobarb has joined #postfix [16:14:39] <hparker> riz_: Send it a welcome email as part of the account setup [16:14:50] *** ziro has joined #postfix [16:14:55] <riz_> in pratic, I need to create the account twice: one for mysql and one for filesystem [16:15:20] <rob0> iptables -L is nearly worthless. And if your firewall is overly complex (a lot of people look like they're trying to show off their bash skills!) it won't be obvious even with -vL or iptables-save(8) output. [16:16:08] <KenSentMe> Is there an other way to check if the firewall blocks access to the server? [16:16:19] <hparker> tcpdump? [16:16:28] <riz_> hparker probabily is the only way to do that [16:16:49] <hparker> riz_: That's the way I do it, though I use adifferent setup [16:17:16] <riz_> hparker with or without mysql ? [16:17:38] <hparker> With, though I'm moving to pgsql sometime in the future [16:17:55] <rob0> pgsql++ [16:18:02] *** GeorgeS069 has left #postfix [16:18:12] <hparker> ;) The user auth is all that's using mysql [16:18:58] <riz_> I would like to disable mysql support, because it's not necessary (I've about 60 accounts...) but at the moment I'm not very skilled with postfix. I'm come from qmail :) [16:19:02] <hparker> And only because I was too lazy to futz with the .sql template for pgsql that didn't work.. Was kinda under the gun, old server was dying a slow, horrible death [16:19:13] <KenSentMe> hparker, tcpdump shows a lot of lines because i use ssh to connect to the server [16:19:39] <hparker> Use port/host parameters [16:24:25] *** frennkie has quit IRC [16:24:28] <KenSentMe> hparker, this is some output of tcpdump: http://paste.ubuntu-nl.org/19969/ [16:25:16] *** noetik has quit IRC [16:27:25] <hparker> anything in the postfix logs? [16:28:46] <KenSentMe> hparker, that would be mail.log, mail.err etc right? No, nothing in there [16:29:07] <KenSentMe> However, saslauthd seem to be not running and i can't get it to start [16:29:18] *** Bronsky has quit IRC [16:29:37] <hparker> With you not being local, you need to either list your IP in mynetworks or use SASL [16:31:10] <KenSentMe> hparker, i added my ip to mynetworks, restarted postfix, but still no luck [16:31:25] <hparker> Anything in the logs now? [16:31:27] <KenSentMe> But if a connection was rejected by postfix it would be in the logs right? [16:31:56] <hparker> Yup [16:32:04] <KenSentMe> nothing [16:32:23] <hparker> Something is blocking it [16:32:32] <hparker> telnet mailserver 25 [16:32:55] <KenSentMe> hparker, form my home machine you mean? [16:33:01] *** __bmgz__ has quit IRC [16:33:03] <hparker> yup [16:33:16] <hparker> If it doesn't work, try it on the server [16:33:47] *** havoc has joined #postfix [16:34:08] <havoc> ok, I think I've got my rebooting issue narrowed down to something to do with email [16:34:36] * hparker thinks havoc is causing too much havoc [16:35:37] <KenSentMe> hparker, telnet from outside the server gets connection refused. From server itself i can send mails [16:35:59] <KenSentMe> telnet: Unable to connect to remote host: Connection refused [16:36:30] *** prebur has joined #postfix [16:37:03] <rob0> netstat(8) tells you if the port is bound and listening. nmap(1) from the outside will show open/closed/filtered ports. [16:37:22] *** VictorE has quit IRC [16:37:27] <rob0> But you already know the port is not open to the outside. [16:38:03] *** rik has left #postfix [16:39:19] <KenSentMe> rob0, just run nmap <server address> ? [16:39:40] <KenSentMe> 25 is not open [16:40:08] <hparker> Might try tcptraceroute and see where it dies [16:42:01] <KenSentMe> hparker, the last line is that of the ip address of the server [16:42:32] <hparker> And that tells you? [16:42:49] <KenSentMe> http://paste.ubuntu-nl.org/19972/ [16:43:02] <KenSentMe> [closed] [16:43:18] <hparker> I know what it tells me, what's it tell you? [16:43:32] <KenSentMe> That the port it closed [16:43:42] <KenSentMe> Ok, but how can i figure out why? [16:43:49] <hparker> So, eithe rpostfix isn't listening or something is blocking it [16:43:52] *** rmayorga has joined #postfix [16:44:09] <KenSentMe> How can i see if postfix is listening on that port? [16:44:25] *** OmiKrOn has quit IRC [16:44:26] <rob0> 14:36 < rob0> netstat(8) tells you if the port is bound and listening. ... [16:44:46] <hparker> heh [16:47:42] <KenSentMe> rob0, i don't see any ports when run 'netstat' [16:48:28] *** cutmasta has quit IRC [16:48:58] <rob0> KenSentMe: Ken should have sent you to "man netstat". :) Basic Unix skills you need to be a mail administrator. [16:51:15] <KenSentMe> rob0, when i run 'netstat lnt' i get this line: tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN [16:51:36] <KenSentMe> Does this mean that something listens on port 25? [16:51:55] <rob0> !inet_interfaces [16:51:56] <knoba> rob0: 'inet_interfaces' : a configuration parameter in the main.cf: The network interface addresses that this mail system receives mail on. By default, the software claims all active interfaces on the machine. The parameter also controls delivery of mail to user at [ip dot address]. If your server does not react to connection attempts on a certain interface you should check this setting. [16:55:24] <KenSentMe> rob0, that's it! It was still set to loopback-only [16:55:38] <KenSentMe> rob0, hparker: thanks very much for you help! [16:56:27] <rob0> you next have to fix the SASL problem, but it will be easier to diagnose when the port is open. [16:56:32] *** pmjdebruijn has quit IRC [16:58:13] <KenSentMe> rob0, well i can send mail when i select tls as secure connection. Does that mean that sasl is actually working? [16:59:48] *** havoc_ has joined #postfix [16:59:58] <havoc_> bah, machine rebooted again :< [17:08:06] *** brancaleone has joined #postfix [17:14:02] *** Roobarb has quit IRC [17:14:23] *** Roobarb has joined #postfix [17:14:38] *** havoc has quit IRC [17:14:57] <ESR_> rob0: Aargh. Does chroot operation default to 'on' in /etc/postfix/master.cf? [17:15:25] <rob0> indeed ... and several distros (Ubuntu included) ship it that way. [17:15:31] *** havoc has joined #postfix [17:15:54] <rob0> "n" in the Fifth Column is your friend. [17:15:59] <ESR_> Fsck me with a chainsaw. [17:16:09] <rob0> Even Wietse recommends that. [17:16:24] <ESR_> That's probably the root of at least half my problems. [17:16:33] <rob0> and he's known to be somewhat security conscious. :) [17:16:33] <havoc> it's gotta be email killing this box :< [17:16:53] <rob0> !cheatsheet [17:16:54] <knoba> rob0: 'cheatsheet' : http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt : A HOWTO for pre-DATA spam control. [17:16:55] <ESR_> I'm going to go edit the Ubuntu wiki now. [17:17:08] <rob0> ESR_: ^^ that kills all my spam without content filtering. [17:18:21] <rob0> Particularly the HELO checks (helo localhost, helo my.ip.add.ress) and reject_rbl_client zen.spamhaus.org. [17:20:18] *** Lap_64 has quit IRC [17:22:22] *** havoc_ has quit IRC [17:23:15] <rob0> ESR_: BTW the master.cf when installed from source does turn off chroot. [17:23:47] <rob0> You might want to bring this up with your package maintainer[s]. [17:24:09] <ESR_> Oh, believe me, I intend to. *grrrr* [17:25:24] *** geem has joined #postfix [17:25:29] <geem> ahhh [17:25:32] <geem> here ya's are [17:25:54] <rob0> No we're not. We're over there at the coffee machine. ----> [17:25:59] <geem> HaHa HaHa HaHa HaHa HaHa [17:27:08] <geem> i see it's kinda quiet in here [17:27:11] <geem> tahts good [17:27:57] <geem> to send email to localhost should the ip be geem at 127 dot 0.1.1 [17:28:12] <geem> or 192.168.1.107 [17:28:51] <geem> not sure if i have config right or not [17:29:00] <rob0> !basic [17:29:00] <knoba> rob0: 'basic' : http://www.postfix.org/BASIC_CONFIGURATION_README.html : a good starting place for Postfix beginners, many common questions are answered here. [17:29:07] <geem> Thank You [17:29:37] <rob0> the syntax on that address is wrong. If you're using an IP address it must be [bracketed]. [17:30:00] <rob0> But generally people use DNS names, of course. [17:30:30] <geem> oh [17:34:52] *** wintix has left #postfix [17:35:14] *** mazon is now known as Mazon [17:41:32] *** rworkman has joined #postfix [17:44:23] *** sepski has joined #postfix [17:54:55] <havoc> status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) [17:54:58] <havoc> WTF? [17:55:37] <mlehrer> are you only listening on eth0? [17:55:52] <rob0> havoc: a WAG: You have a content_filter and it's not running. [17:56:02] <havoc> yeah, amavis [17:56:04] <havoc> it's running [17:56:25] <rob0> My WAG's are running close to 100% today. :) [17:59:03] <havoc> now I'm getting: status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused) [17:59:22] <havoc> (I had killed and restarted amavisd and postfix) [18:00:29] <rob0> "Connection refused" and "Connection refused" look pretty similar to me. [18:00:45] <havoc> but the delivery= status is different [18:00:55] <rob0> But the problem is the same. [18:01:00] <havoc> probably [18:01:17] *** raqamy has joined #postfix [18:01:58] *** cilly has quit IRC [18:02:09] <havoc> amavisd is running [18:03:46] *** bostik has quit IRC [18:04:40] <rob0> And listening on the same port you're trying to connect to? Or perhaps, an overzealous firewall is blocking loopback? [18:06:04] *** [miles] has quit IRC [18:10:21] *** cilly has joined #postfix [18:11:09] *** wintix has joined #postfix [18:11:26] <havoc> rob0: no, firewall isn't blocking [18:12:46] <wintix> i'm trying to get dns blacklisting to work. i have added maps_rbl_domains = ix.dnsbl.manitu.net and smtpd_client_restrictions = reject_maps_rbl to the main.cf. some toturial said that RBL lookups are disabled by default. do i have to enable it? so far i haven't found any hint how to do so. [18:13:56] <wintix> is there a log about the rejected requests? [18:14:02] *** Roobarb has quit IRC [18:14:22] *** Roobarb has joined #postfix [18:16:57] <ESR_> Wacky. chroot is turned off, but postficx appears to be ignoring my attempt to set mydestination in main.cf, at least if postconf -d isn't lying. What can cause this? [18:17:18] <hparker> Try -n [18:18:23] *** rob0_ has joined #postfix [18:18:26] *** rworkman has quit IRC [18:18:54] <ESR_> Oops. Bad paste -- I didn't see that -d is *supposed* to dump defaults :-) [18:19:20] *** rworkman has joined #postfix [18:19:30] *** rob0 has quit IRC [18:20:00] *** rob0_ is now known as rob0 [18:21:28] <rob0> I think I missed something here. [18:22:01] <rob0> wintix: maps_rbl_domains is EVER so deprecated, do not use that. [18:22:11] <rob0> !cheatsheet [18:22:12] <knoba> rob0: 'cheatsheet' : http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt : A HOWTO for pre-DATA spam control. [18:22:39] <rob0> ^^ explains the proper reject_rbl_client syntax, along with some good suggestions. [18:26:42] <wintix> i see. thank you, rob0, knoba. [18:34:17] *** limed has left #postfix [18:41:53] * rob0 just got ran over by a flight of 2 C130's. [18:42:22] * hparker hopes rob0's hair is ok [18:42:51] <rob0> standing on end ... what little is left, that is :) [18:42:58] <hparker> hehe [18:45:45] *** mastachand has quit IRC [18:46:06] <rob0> They come through here at maybe 1000-2000' AGL. You see these huge shadows, sometimes before you hear the roar. [18:47:30] <rob0> pretty cool, but still not as cool as a B52 :) [18:47:43] <ESR_> rob0: problem report, as you suggested, at http://rafb.net/p/PhmY2L52.html. Any insight you can offer, or suggestions fotr additional diagnostics, would be welcome. [18:48:39] <rob0> !loopback [18:48:40] <knoba> rob0: 'loopback' : 'Mail loops back to myself' means that your Postfix wanted to send out the mail to the internet but then discovered that the DNS says your mail server should be responsible. Most likely you forgot to list your domain in mydestination or virtual_(alias|mailbox)_domains [18:48:53] <rob0> !proxy_interfaces [18:48:53] <knoba> rob0: 'proxy_interfaces' : a configuration parameter in the main.cf: The network interface addresses that this mail system receives mail on by way of a proxy or network address translation unit. This setting extends the address list specified with the inet_interfaces parameter. [18:48:56] *** Ryushin has quit IRC [18:49:38] <rob0> $proxy_interfaces tells Postfix that your external IP is its own IP. Maybe you have that. [18:50:12] *** havoc has quit IRC [18:50:39] *** hemry has joined #postfix [18:50:42] <rob0> You want landley.net in virtual_alias_domains , I bet. [18:53:04] <rob0> Also, in your virtual_alias_maps , you should always use fully-qualified addresses: "alias at landley dot net esr@localhost" (rather than just "esr"). [18:53:55] <geem> hey rob0 [18:54:00] <rob0> The DMZ machine is the one with the identity problem here. [18:54:01] <geem> been reading [18:54:34] <rob0> !virtual [18:54:35] <knoba> rob0: 'virtual' : a way to configure additional domains and user accounts (that do not need to exist in your /etc/passwd). See: http://www.postfix.org/VIRTUAL_README.html [18:54:50] <rob0> See the virtual alias section ^^ in there. [19:03:18] <rob0> ESR_: Grelber (DMZ version) needs a transport(5) (or different DNS view) to direct mail to the internal machine. That would be covered in postconf.5.html#transport_maps and transport.5.html . [19:03:50] <rob0> DNS is more fun, but transport's quick-n-dirty. [19:05:09] <ESR_> rob0: Furll URLs for those HTML references, please? [19:05:15] *** Sp4rKy has joined #postfix [19:05:18] <Sp4rKy> hi [19:05:44] <Sp4rKy> does anyone know if we cant set different mailgraph for different adresses for example [19:06:00] <rob0> They're in your local $html_directory ... always best to look at your local copies. But the latest versions are at www.postfix.org of course. [19:06:01] <Sp4rKy> ie : i would a milgraph for each of my mailing list [19:06:26] *** wintix has left #postfix [19:07:00] <rob0> (And if you prefer TFM to HTML, "man 5 transport" "man 5 postconf".) [19:07:29] <Sp4rKy> ... [19:08:12] <ESR_> rob0: reading them now. [19:09:16] <ESR_> Sorry, they're perfect traditional man pages -- which means they're extremely useful, but only as references to somebody who already understands the system. [19:10:41] <Sp4rKy> you tlk for me ? [19:10:44] <Sp4rKy> talk* [19:11:01] <ESR_> rob0: I don't actually want to redirect mail to antwhere else. Grelber is the destination for all thyrsus.com mail; internal machines pick up mail via imap. [19:12:14] <ESR_> All I want to do is get rid of the bounce due to loopback. I don't understand wht declaring thyrsus.com in mydestinations didn't do that. [19:13:07] <rob0> Sp4rKy: lack of a response usually means no one knows. [19:13:26] <rob0> (you're asking about mailgraph - I don't use that) [19:13:33] <ESR_> I also don't yet understand why theat message is being generated at all. The explanations un the docs are...obscure. [19:14:03] *** Roobarb has quit IRC [19:14:22] *** Roobarb has joined #postfix [19:15:03] <rob0> ESR_, I think your setup is unnecessarily complicated. Why do you need hurkle? Why is it forwarding to @grelber.thrysus.com ? [19:15:23] *** MrRagga has joined #postfix [19:15:42] *** birmaan has joined #postfix [19:15:49] <rob0> A paste of "postconf -n" and the complete logging of a bounce from initial receipt would clear this up. [19:16:08] <ESR_> OK, will do. [19:16:14] *** xpoint has joined #postfix [19:17:54] <rob0> (Non-verbose logging is usually more than enough.) [19:18:12] *** rmayorga has quit IRC [19:24:23] *** rmayorga has joined #postfix [19:25:04] * hparker adds dnswl.org to spamassassin [19:25:19] *** olinux has joined #postfix [19:28:42] *** rmayorga has quit IRC [19:33:42] <rob0> Hmmm, are they trustworthy? Just seems like a list that spammers would try to lie / sue their way on. [19:34:15] <rob0> Then again ... Zen would catch them before it gets to SA. [19:35:16] *** Mez has quit IRC [19:37:26] <hparker> rob0: Low scoring [19:39:04] *** frennkie has joined #postfix [19:39:21] <hparker> My bayes looks like it might be getting skewed, not seeing much less then bayes_50 in anything [19:39:48] <rob0> RBL's will (rightfully) render Bayes semi-worthless. [19:40:16] <rob0> Do you know if DNSWL has had any issues with listing spammers? [19:41:30] <hparker> I've not heard anything negative about it yet [19:41:31] <rob0> Some of the "double opt-in" crowd don't seem to understand that they are really just spammers. [19:41:45] <hparker> heh.. Yeah [19:42:09] <rob0> I haven't had time to keep up on postfix-users and SPAM_L. [19:44:04] *** cutmasta has joined #postfix [19:44:39] <rob0> Funny thing tho: since I dropped out, my spam has hit an all-time low, thanks to Zen. :) [19:45:18] <hparker> I'm not on SPAM_L.. Poke into NANAE from time to time just to see what's going on... Usually read < 10, delete a few hundred/thousand [19:45:32] <hparker> Yeah, zen is great [19:46:08] *** n3kl_ has joined #postfix [19:46:39] *** rmayorga has joined #postfix [19:47:36] <rob0> Some of the NANAE people are in SPAM_L too. Noise level much lower. :) [19:48:03] <n3kl_> Hi. I have a mail server up and running with smtp auth and whatever else... I would like to use this box as a collection point for all my server emails. On the client machine, I have set the relay host to the fqdn of the mail server, but for some reason the mail sent the box does not get to my inbox. I check mailq, nothing. I check the locations where the mail might be stored in case its not working. What else could I try to narrow down my problem? [19:48:07] <hparker> heh.. I mainly ready it to laugh at the k00ks [19:48:12] <rob0> Spammers may lurk but they usually keep quiet on SPAM_L. [19:48:23] <rob0> yeah, entertainment :) [19:48:36] <hparker> n3kl_: Reading the logs? [19:48:50] * rob0 <3 logs :) [19:49:10] * hparker throws logs at rob0 [19:49:12] *** flami has joined #postfix [19:49:13] <ESR_> rob0: Report you requested is at http://rafb.net/p/63suEu88.html (bounce followed by postconf -n). What I'm not getting is wht declaring thyrsus.com in mydestination doesn't prevent the bounce. [19:50:21] <n3kl_> do I need to set the alias to the full email address if I am using a relayhost for the global config, or can I set aliases to the user account and postfix will take over from there? [19:50:24] *** cutmasta has quit IRC [19:51:47] <n3kl_> Ah, logs are a good thing. Sometimes after working with an issue you forget to do such easy things. status=bounced [19:53:38] <rob0> ESR_: Note that grelber attempted to relay to snark. Snark here is having the loopback problem (DNS points to snark, but @snark.thyrsus.com isn't set as a final destination.) [19:54:19] * rob0 floats downstream on hparker's logs [19:54:55] <ESR_> So, do I need to put snark.thyrsus.com in the mydestination line explicitly? I thought the thyrsus.com entry was supposed to act as a wildcard. [19:55:15] *** havoc has joined #postfix [19:55:21] <havoc> getting: mail_queue_enter: create file maildrop [19:55:46] <havoc> well, more specifically: postfix/postdrop[9114]: warning: mail_queue_enter: create file maildrop/428956.9114: Permission denied [19:56:14] <havoc> but mail seems to be coming in and going out [19:56:24] <hparker> That looks obvious to me, perms problem [19:56:43] <havoc> again, you'd think so [19:56:53] <havoc> perms look right though [19:56:56] <hparker> I guess you get lucky sometimes :P [19:57:13] <havoc> it's refering to /var/spool/postfix/maildrop right? [19:57:43] <hparker> I would guess [19:57:53] <rob0> havoc: yes, and the postdrop process doesn't have permission. [19:58:28] <havoc> which process si that? [19:58:40] <rob0> ESR_: I still don't understand the whole setup. Is there any reason why you can't have a single Postfix outside the firewall handling it all? [19:58:47] <hparker> havoc: The one that drops the mail? ;) [19:58:54] * hparker runs [19:58:59] <havoc> again, which process is that? [19:59:10] <rob0> But to answer your question, I believe that's right, you have to explicitly list subdomains. [19:59:22] <rob0> havoc: postfix/postdrop[9114] [19:59:22] <ESR_> Nowe pasting a description of my setup... [19:59:35] <hparker> havoc: If I knew I wouldn't of had a smartass answer [20:00:11] <rob0> hparker lies. He loves giving smartass answers. :) [20:00:18] <hparker> ;) [20:00:30] <rob0> pot-kettle-black [20:00:35] *** pickcoder has joined #postfix [20:01:11] <hparker> lol [20:03:10] <rob0> ESR_: "postconf parent_domain_matches_subdomains" I think is what controls that. [20:04:07] <ESR_> So if that's off, I need to list all interior machines by FQDN explicityly> [20:04:08] <ESR_> ? [20:04:22] *** Habbie has quit IRC [20:05:32] *** havoc has quit IRC [20:06:03] *** brancaleone has quit IRC [20:06:43] <ESR_> Aha: "parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps" mydestinations isn't in the set that does wildcarding. [20:07:12] <rob0> Yes, you could try adding that. Not sure if it will work. [20:07:30] <rob0> s/mydestinations/mydestination/ [20:07:43] <ESR_> Right. [20:08:33] <rob0> Maybe not bother with that and try ".thrysus.com" in addition to the others. [20:08:53] <ESR_> Can I say 'parent_domain_matches_subdomains += ,mydestination' and have it work? [20:09:00] <rob0> (The leading dot is the syntax for wildcard subdomains.) [20:09:01] *** havoc has joined #postfix [20:09:04] <havoc> mofo :( [20:10:05] <ESR_> I'll try the form with the leading dot. [20:10:15] <rob0> I don't think postconf(5) syntax is that intelligent; you should specify the whole parameter. (But first try the ... yes.) [20:10:22] *** tkrin has joined #postfix [20:11:22] <rob0> Have you considered DNS views to route to your internal machines? That's really the most elegant solution. [20:11:52] *** amrit|zzz is now known as amrit|wrk [20:12:11] <ESR_> Uh...what's a "DNS view"? [20:12:55] <rob0> You tell the world one thing ... snark.thrysus.com is x.x.x.x ... and tell internal machines something else ... y.y.y.y. [20:13:43] <rob0> A lot of fun, really. [20:13:55] <ESR_> rob0: Uggh. I hate that kind of hack. The inconsistencies *always* come back around to bite you in the ass. [20:14:02] <hparker> The make life easy [20:14:03] *** Roobarb has quit IRC [20:14:07] <hparker> s/The/They [20:14:14] <rob0> It can go either way, yes. [20:14:23] *** Roobarb has joined #postfix [20:15:17] <rob0> You do have to remain aware of it and of which view you're seeing at any given moment. :) [20:15:28] *** havoc has left #postfix [20:15:29] <ESR_> *shudder* [20:16:08] *** rootsvr has joined #postfix [20:17:57] *** Turt|e has joined #postfix [20:21:02] <n3kl_> Do I have to put an alias to the user@fqdn email address in the aliases file for postfix to send the message to the smarthost? [20:25:14] <Signum> n3kl_: alias=receiving. smarthost=sending. [20:25:57] <n3kl_> right. I think I have it setup correctly, so I don't know what I am missing. Is there like a list of commonly used configurations for postfix around? [20:26:08] <n3kl_> this should be pretty straight forward [20:26:34] <Signum> Perhaps you explain the trouble you have. [20:26:54] <rob0> !standard [20:26:55] <knoba> rob0: 'standard' : Your question is probably answered in http://www.postfix.org/STANDARD_CONFIGURATION_README.html [20:27:08] <rob0> s/probably/possibly/ [20:27:17] <n3kl_> On the satellite system, I have a smarthost defined, but the mail never reaches the smarthost. [20:27:28] <Signum> n3kl_: check your logs [20:28:13] <n3kl_> Signum: I have, and they report that the mail was delivered successfully, but to the local destination, not the smart host. [20:28:38] <Signum> n3kl_: then your satellite system has likely set the domain name as "mydestination" [20:29:50] <n3kl_> on the satellite system, I have the mydestination set to the host.domain.com [20:29:56] *** ESR_ has quit IRC [20:32:34] <Signum> n3kl_: and that's the domain you are sending an email to? [20:34:03] <n3kl_> on the satellite system, I just send it as though it is a local account using mutt. [20:34:36] <Signum> and the recpient address has the domain host.domain.com? [20:37:27] *** Tino is now known as Tinozaure [20:37:41] <n3kl_> from looking in the logs, it looks like the address is rewritten to user at host dot domain.com, which makes sense then becuase the host.domain.com is included in the satellite system mydestination. [20:38:14] <n3kl_> So how can I correct this? [20:38:26] *** ESR has joined #postfix [20:38:36] <n3kl_> change the mydestination variable on the satellite system? to what? [20:38:54] *** MrRagga has quit IRC [20:41:37] *** Enquest has joined #postfix [20:42:17] <n3kl_> Would you be so kind as to take a look at my satellite config for me? http://pastebin.ca/479399 [20:42:22] <Enquest> I'm trying mail from command line... Using postfix... but what do I need to add to get it working. Do I need to add smtp = "" the smtp from my provider? [20:46:43] *** tkrin has quit IRC [20:47:00] <Enquest> anybody can help me with this simple question [20:48:56] <sepski> Enquest, do you use the mail command (from the mailx package?) [20:48:56] <rob0> Enquest: It's simple, but you've got to understand a lot more before it becomes so. :) Sounds like you're asking about nail(1), which is not a Postfix issue at all if you use smtp=smtp.isp.tld. [20:49:07] <Enquest> sepski, yes [20:49:19] <rob0> But sure, you might be able to do what you need that way. [20:49:35] <rob0> mailx doesn't support that, I think. [20:49:48] <Enquest> I simple need to now if my mail script works from localhost by sending some mails [20:49:50] <rob0> You will have to read "man mail" and find out. [20:49:55] <n3kl_> Anyone had a change to look at my config? [20:50:15] <Nockian> use 'nail' if you can, i've found it much better than 'mail' especially for handling attachments [20:50:35] * rob0 agrees with Nockian [20:50:40] <Enquest> it's to see how my python script performs [20:50:48] <rob0> better in many ways [20:52:17] *** olinux has quit IRC [20:52:39] <Nockian> n3kl_: that link you pasted for pastebin.ca isn't responding [20:52:56] <rob0> it came up for me, but lacking any logs describing the problem [20:55:18] <n3kl_> OK, try that one. http://paste.uni.cc/15339 [20:56:08] *** cilly has quit IRC [20:56:22] <n3kl_> This is the config of the satellite system. This system will not send the messages to the smarthost? When looking in the logs, emails are destined for ns1.domain.com, which is the localhost of the satellite system. How do I correct this so that messages are delivered to the smarthost? [20:57:15] *** KenSentMe has left #postfix [21:00:34] <Nockian> n3kl_: it's going to accept mail for ns1.domain.com since you have it in your mydestination = setting [21:00:48] <Nockian> if you remove it from mydestination = it should forward it fine [21:01:08] <n3kl_> Nockian: so do I delete the mydestination variabl entirely? [21:01:13] <Nockian> no [21:01:18] *** cilly has joined #postfix [21:01:19] <Nockian> you remove ns1.domain.com from mydestination = [21:02:02] <Nockian> then 'postfix reload' [21:04:05] <kjalil> Hi, I'm trying to send mail out using 'mail' from a machine running postfix, but it keeps using the machine's local hostname in the From address. I tried using smtp_generic_maps but that doesn't work. Even change 'myorigin' to my external domain name doesn't work. I hope you can help. [21:04:11] <kjalil> postconf -n is here: http://pastebin.ca/479431 [21:05:44] <n3kl_> Nockian: Ok, now I am seeing it show up on the smarthost logs at least, but I am getting message 'defered' [21:06:17] *** KhensU has quit IRC [21:06:33] <Nockian> n3kl_: where do you want mail from ns1.domain.com to eventually go into a mailbox at? [21:06:45] *** KhensU has joined #postfix [21:06:51] <n3kl_> ah, because the mail is still destined for ns1.domain.com [21:07:06] <n3kl_> user at smtp dot domain.com [21:07:07] <Nockian> right [21:07:14] <n3kl_> that is where I would like the final destination to be [21:07:33] <Nockian> you need to have your smarthost know to send mail destined for ns1.domain.com to go to smtp.domain.com [21:07:44] <n3kl_> Nockian: so on the smarthost, do I need to append the destination ns1.domain.com to the mydestination variable [21:07:51] <Nockian> yes [21:07:58] <Nockian> so long as your smarthost is smtp.domain.com [21:08:04] *** Rattail has joined #postfix [21:08:27] <n3kl_> Nockian: and I would need to do that for all systems I would like to have mail sent the smart host for? [21:08:38] <Nockian> that is correct [21:10:35] <Rattail> I've been working with postfix and amavis usning clamav for sometime now, just updated my clamav and it over wrote all the configs, I reset them but now my email server is slow "very slow" when I use top all I see is amavisd and clamscan at the top [21:10:47] <Rattail> how can I speed up my email system [21:11:23] <lunaphyte_> send smaller messages. [21:11:28] <Rattail> 1193 amavis 21 0 5784 1408 1136 R 14 0.0 0:00.43 clamscan [21:11:53] <kjalil> can someone please lend a hand? i'd appreciate it :) [21:12:19] <Rattail> I got over 568 emails setting in my queue [21:12:31] <Nockian> kjalil: when you set 'myorigin = domain.com' that should work. did you 'postfix reload' after making the change? [21:12:44] <n3kl_> Nockian: friggin sweet. Thanks. Mail is one of those things that I dread working with becuase there is so much involved. Thank you for your time. [21:13:01] <kjalil> Nockian: yes, i did. funny enough from a ubuntu box it works, from this netbsd box it doesn't. [21:13:18] <kjalil> Nockian: the configs are the same, AFAIK [21:13:43] <Nockian> kjalil: make sure you're editing the correct main.cf file... in bsd sometimes it's under /usr/local/etc/postfix/main.cf or such instead of /etc/postfix.main.cf [21:13:51] <Nockian> n3kl_: you're welcome, good luck :) [21:14:02] *** Roobarb has quit IRC [21:14:22] *** Roobarb has joined #postfix [21:14:31] <Nockian> Rattail: you can change your $max_servers and $max_requests in your amavisd.conf file and make sure they match your postfix's master.cf file [21:15:21] <n3kl_> Nockian: a particular book you would recomend for learning this? [21:15:27] <kjalil> Nockian: really! let me check [21:15:28] <Nockian> Rattail: i'd recommend trying $max_servers = 2; and $max_requests = 10; in amavisd.conf, and then setting the number to '2' as well for your master.cf file for smtp-amavis or such [21:16:11] <kjalil> Nockian: no, there is only one in /etc/postfix. nothing in /usr/local [21:17:01] <Nockian> kjalil: from your netbsd server do a 'postconf |grep config_directory' [21:17:23] <Rattail> smtp-amavis unix - - n - 2 smtp [21:17:46] <Nockian> Rattail: okay that's good, now what does your amavisd.conf say for $max_servers = ? [21:17:54] <Nockian> they should match [21:17:55] <Rattail> 2 [21:18:00] <kjalil> Nockian: config_directory = /etc/postfix [21:18:28] <kjalil> Nockian: hmm, what does append_at_myorigin mean? [21:18:36] <Rattail> I don't have $max_requests in amavisd.conf [21:18:59] <geem> someone should make a simple interface for these dang things [21:19:02] <kjalil> Nockian: nevermind, it's there on the ubuntu box as well [21:19:19] <geem> i been stuck on postfix for 3 days now [21:19:34] <Nockian> geem: that would take all of the fun out of it, and you wouldn't know how things worked :) [21:19:43] <geem> :) [21:20:01] <Rattail> I'd like to turn amavis off just to clear the mail out of my queue [21:20:04] <Nockian> Rattail: i'd put a '$max_requests = 10;' in amavisd.conf [21:20:27] <rob0> "S" in SMTP stands for "Simple". And the protocol is simple, which is precisely why it's so difficult to manage right. [21:20:40] <Rattail> right under $max_servers = 2; [21:20:46] <Nockian> Rattail: sure, that's fine [21:21:06] <rob0> If "S" stood for "Secure", it would be a different ball game. [21:21:12] <Rattail> done [21:21:18] <Nockian> Rattail: do you have a '$child_timeout=' in your amavisd.conf ? [21:22:10] <Rattail> no I do not [21:22:28] <Rattail> what does that do [21:22:37] <Nockian> Rattail: i'd also throw in a '$child_timeout=8*60;' [21:22:52] <Rattail> same spot [21:22:53] <Rattail> ?? [21:23:00] <Nockian> it sounds like your distribution does a bad job of a default config :) [21:23:04] <Nockian> yeah, that would be fine [21:23:32] <kjalil> Nockian: any other ideas? [21:23:37] <Rattail> got it from yum [21:23:56] <Rattail> Okay got both of those anything else before I restart it [21:24:03] <Nockian> kjalil: can you post your main.cf in a pastebin somewhere? or post your 'postconf -n' output [21:24:53] <Nockian> Rattail: i'd try that and watch your maillog to see if you see anything strange, or your clamd log etc. [21:25:10] <Nockian> Rattail: make sure that you're not getting any strange permissions errors or such after the upgrade, that is very common [21:26:09] <kjalil> Nockian: I did postconf -n already? hang on I'll do it again [21:26:32] <Nockian> yeah one sec i'm sorry, i just scrolled up [21:27:04] <Nockian> kjalil: what does the file '/etc/mailname' have in it? [21:28:12] <Rattail> now no email is not going throw [21:28:13] <Nockian> i'm not sure if you can reference an external file for that, i've always just put 'myorigin = domain.com' [21:28:43] <Nockian> Rattail: what is your log saying? [21:29:26] <Rattail> just shows users loging in and out [21:29:34] <Rattail> dovecot [21:29:36] <Nockian> your maillog [21:29:44] <Nockian> postfix/amavisd [21:32:51] <kjalil> Nockian: ok, here is 'postconf -n' followed by main.cf: http://pastebin.ca/479465 [21:33:01] <kjalil> Nockian: /etc/mailname has 'myexternaldomain.com' in it [21:33:28] <Rattail> I had to change to two settings back they was killing me, my queue jumped from 500 to 700 in minutes [21:33:33] <Rattail> I [21:33:40] <Rattail> any other ideals [21:33:47] <Nockian> kjalil: if you have 'myorigin = myexternaldomain.com' in your main.cf file you should be fine [21:34:24] <kjalil> Nockian: when I use 'mail something at gmail dot com' and I look at who it is from, it still says kjalil at altair dot home. It won't budge. [21:34:25] *** MarcoH has joined #postfix [21:34:30] <Nockian> kjalil: like i said i'm not 100% sure about referencing a file for myorigin = and for what versions [21:34:55] <kjalil> Nockian: yeah I only did that because it just works perfectly like that on the ubuntu box [21:34:58] <Nockian> kjalil: ah, that's because you're not handing it to the local postfix server via 'mail' most likely [21:35:17] <kjalil> Nockian: you mean it's a sendmail problem? [21:36:23] <Nockian> i mean that if you telnet to your local postfix server on port 25 and send a message via smtp using kjalil at altair dot home as the from: address, postfix would reject it [21:36:32] <kjalil> Nockian: one thing I found out is that if I use mutt instead of mail and I change the From manually, then atleast it says kjalil at externaldomain dot com then [21:36:34] <Nockian> it's a local 'mail' client configuration problem [21:37:05] <kjalil> Nockian: let me try that [21:37:53] <kjalil> Nockian: OH! when I telnet localhost it says 'Sendmail ....' NOT Postfix! so postfix is not being called at all! [21:38:03] <Nockian> kjalil: hehe, there you go [21:38:14] <kjalil> Nockian: crap! dammit! what a waste of time [21:38:34] <Nockian> kjalil: you need to make sure that sendmail isn't being used anymore on bsd, and that it uses postfix instead. i should have thought of that, sorry [21:38:36] <kjalil> Nockian: so how do i change it now? let's see [21:39:08] <kjalil> Nockian: yeah i'm brand new to bsds. i'll have to figure out how to change it now I don't know how [21:39:28] <Nockian> kjalil: one sec [21:41:11] <Nockian> http://pastebin.ca/479484 [21:41:44] <Nockian> that's the only thing i had to do in freebsd if i recall correctly [21:42:37] <Nockian> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-changingmta.html [21:42:44] <Nockian> it most likely applies to netbsd as well [21:44:05] *** binwiederhier has joined #postfix [21:44:18] <kjalil> Nockian: are you sure sendmail_enable=YES is right? shouldn't it be NO. Once I turn sendmail off with /etc/rc.d/sendmail stop it reverts to postfix then [21:44:41] <kjalil> Nockian: so maybe sendmail_enable=NO might work [21:44:46] <Nockian> it's possible [21:44:53] <binwiederhier> hey there, i'm using mysql for my mapping, is it possible to create backup-maps if mysql is down [21:45:42] <binwiederhier> like: virtual_alias_maps = mysql:/etc/postfix/..., hash:/etc/postfix/backup... [21:45:45] <binwiederhier> will this work? [21:47:04] <sepski> i think yes, i also think you might use a second backup mysql server in the same fashion [21:48:45] <binwiederhier> well, i only have one vserver, is it possible/advisable to run 2 servers? [21:48:50] <binwiederhier> mysql-servers? [21:49:34] <binwiederhier> if not, i'll make a script to update the backup-files every x hours [21:53:03] <Rattail> OK I am getting this error in maillog -->ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.sock: Connection refused, retrying (2) [21:53:39] <Rattail> I checked permissions drwxrwxr-x 2 clamav amavis 4096 May 8 15:47 clamav [21:54:39] <Rattail> in clamav.conf I have set User amavis [21:56:05] <Rattail> Nockian, after I removed those settings you gave me the mail started moving again but very slow 159710 Kbytes in 675 Requests. [21:56:35] <Rattail> how can I get this mail to move ??? [22:00:16] *** birmaan has quit IRC [22:01:59] <Rattail> Nockian, should I remove amavis and clamav so that the mail flows quickly ? [22:02:58] *** TheOutlander has joined #postfix [22:02:59] *** rmayorga has quit IRC [22:03:36] *** Terminator has joined #postfix [22:03:57] <Sp4rKy> does anyone use mailgraph ? [22:08:00] *** GMFlash has joined #postfix [22:08:08] *** rmayorga has joined #postfix [22:09:48] <Signum> yup [22:12:10] <Rattail> ClamAV-clamd av-scanner FAILED: Too many retries to talk to /var/run/clamav/clamd.sock (Can't connect to UNIX socket /var/run/clamav/clamd.sock: [22:12:50] <Rattail> Connection refused) at (eval 56) line 268. [22:13:04] <Rattail> what does that mean eval 56 [22:14:02] *** Roobarb has quit IRC [22:14:22] *** Roobarb has joined #postfix [22:16:05] *** Turt|e has quit IRC [22:20:47] *** frennkie has quit IRC [22:21:31] *** TheOutlander has quit IRC [22:23:37] *** Terminator has quit IRC [22:23:51] *** TheOutlander has joined #postfix [22:35:21] <kjalil> Nockian: thanks a million for your help. i also had to edit mailer.conf and remove all the sendmail stuff to make it work, but now it finally works! [22:42:42] *** alanhaggai has joined #postfix [22:47:59] *** Alan_Hicks has joined #postfix [22:49:59] *** mlehrer has quit IRC [22:50:37] *** dj-fu has joined #postfix [22:54:27] *** hparker is now known as hparker|afk [22:54:52] *** hparker|afk is now known as hparker [23:02:49] *** KenSentMe has joined #postfix [23:03:56] <Nockian> kjalil: awesome [23:04:52] *** geem has quit IRC [23:04:54] <KenSentMe> I run this tutorial http://workaround.org/articles/ispmail-sarge/#amavis and added this line to mail.cf to use Amavis: content_filter = amavis:[127.0.0.1]:10024 . However. Now incoming mails are not delivered to the maildir because (connect to 127.0.0.1[127.0.0.1]: Connection refused) . Anyone know what i am doing wrong? [23:05:23] <Nockian> Rattail: what's most likely happening is amavis is a permissions issue between amavis and clamav, like i said that's a common issue. i always make amavisd, clamd and freshclam run as the same user and set the permissions appropriately for any directories they use [23:05:54] <Nockian> Rattail: try looking at your clamd.log and see if there are permissions issues. also check wherever amavisd is logging to (/var/log/maillog usually) [23:08:08] <Signum> KenSentMe: is amavis running? can you reach it through "telnet localhost 10024"? [23:08:51] <KenSentMe> Signum, i got it just now. Amavis indeed wasn't running. I'd reloaded it, but i guess that wont start it when it's not running [23:10:44] *** Tinozaure is now known as Tino [23:11:30] *** sepski has quit IRC [23:14:02] *** Roobarb has quit IRC [23:14:22] *** Roobarb has joined #postfix [23:16:51] *** Enquest has quit IRC [23:19:43] *** imcsk8 has joined #postfix [23:20:37] <imcsk8> hello, i get this error when i startup postfix: libexec/postfix/smtp: bad command startup -- throttling and my server does not start, what could be the problem?? [23:25:12] <Signum> KenSentMe: amavis is started through init.d during startup of the system and will usually stay running [23:25:25] <Signum> imcsk8: run "postfix check" and/or watch your log file for errors [23:25:43] *** dj-fu has quit IRC [23:25:50] <imcsk8> Signum: thanks [23:26:38] *** KenSentMe has quit IRC [23:26:45] *** pirho has joined #postfix [23:30:42] *** dj-fu has joined #postfix [23:41:55] *** rootsvr has quit IRC [23:43:52] *** TheOutlander has quit IRC [23:45:11] *** n3kl_ has quit IRC [23:46:37] *** okta has joined #postfix [23:49:38] <okta> hello. (message filtering) i would like to do the following: if a mail is of content-type delivery-status i need to check if the recipient of this message 8local offcourse) is a wildcard-address or a real user. provided the wild-card-user check works all right (using virtual/mysql setup) how could i combine these checks in order todiscard these mails. since my domains are constantyl abused by spammers using random local-ports those leaving me flood [23:49:48] <okta> any idea? [23:52:29] <okta> i would create a "smtpd_restriction_classes" using the pcre for the body part first than the alias check - but wait - can i do mime header checks on smtpd_restriction_classes? [23:53:19] *** Ryushin has joined #postfix [23:55:46] *** chessir has joined #postfix [23:57:15] <chessir> hello, how will I know if I know my Linux Basics? [23:57:33] <chessir> do you test me first? [23:58:04] <rob0> :) We just get snobby with basic-level questions.