User Chris Boyle - Super User most recent 30 from superuser.com 2010-03-12T22:12:11Z http://superuser.com/feeds/user/4211 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://superuser.com/questions/32404/postfix-virtual-alias-maps-delivering-everything-to-one-user-despite-new-domain 0 Postfix: virtual_alias_maps delivering everything to one user despite new domain [closed] Chris Boyle http://superuser.com/users/4211 2009-08-30T15:19:24Z 2009-08-30T16:02:24Z <p>I have a <a href="http://www.postfix.org/" rel="nofollow"><code>postfix</code></a> installation handling mail for a couple of domains, for which all mail goes to one real local user (<code>cmb</code>), and I want to add a new domain (let's call it <code>example.org</code>) for a second user, but everything is being delivered to <code>cmb</code>. Here is <code>/etc/postfix/virtual</code>:</p> <pre><code>chris@boyle.name cmb @chris.boyle.name cmb @cmb.is-a-geek.org cmb @example.org newperson </code></pre> <p>Here is most of <code>/etc/postfix/main.cf</code>, full file on request. I have not set <code>luser_relay</code>.</p> <pre><code>myhostname = nova.chris.boyle.name alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = chris.boyle.name mydestination = chris.boyle.name, nova.chris.boyle.name, nova, localhost.localdomain, localhost mynetworks_style = host mailbox_command = procmail -a "$EXTENSION" virtual_alias_domains = cmb.is-a-geek.org example.org virtual_alias_maps = hash:/etc/postfix/virtual smtpd_sender_login_maps = hash:/etc/postfix/virtual </code></pre> <p>Here is <code>/etc/aliases</code>:</p> <pre><code># See man 5 aliases for format postmaster: cmb root: cmb </code></pre> <p>Note that <code>aliases.db</code> and <code>virtual.db</code> are both more recent than their plain-text counterparts, and <code>postfix</code> has been restarted to no effect. A test mail to <code>test@example.org</code> does this in <code>mail.log</code> (I've edited this log extract to make the domain <code>example.org</code>).</p> <pre><code>Aug 30 12:48:59 nova postfix/smtpd[32520]: 795B53D558: client=goggins.uwcs.co.uk[89.16.166.19] Aug 30 12:48:59 nova postfix/cleanup[32530]: 795B53D558: message-id=&lt;20090830114859.GA15341@warwickcompsoc.co.uk&gt; Aug 30 12:48:59 nova dkim-filter[2074]: 795B53D558 external host goggins.uwcs.co.uk attempted to send as uwcs.co.uk Aug 30 12:48:59 nova dkim-filter[2074]: 795B53D558 ASP query: missing parameter(s) in policy data Aug 30 12:48:59 nova spamd[2385]: spamd: connection from localhost [127.0.0.1] at port 38371 Aug 30 12:49:00 nova spamd[2385]: spamd: using default config for test@example.org: /srv/chris.boyle.name/spamassassin/user_prefs Aug 30 12:49:00 nova spamd[2385]: spamd: processing message &lt;20090830114859.GA15341@warwickcompsoc.co.uk&gt; for test@example.org:1000 Aug 30 12:49:05 nova spamd[2385]: spamd: clean message (-5.2/5.0) for test@example.org:1000 in 5.3 seconds, 1002 bytes. Aug 30 12:49:05 nova spamd[2385]: spamd: result: . -5 - AWL,BAYES_00,LOCALPART_IN_SUBJECT,RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY scantime=5.3,size=1002,user=test@example.org,uid=1000,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=38371,mid=&lt;20090830114859.GA15341@warwickcompsoc.co.uk&gt;,bayes=0.000000,autolearn=ham Aug 30 12:49:05 nova postfix/qmgr[32518]: 795B53D558: from=&lt;cmb@warwickcompsoc.co.uk&gt;, size=966, nrcpt=1 (queue active) Aug 30 12:49:05 nova postfix/smtpd[32520]: disconnect from goggins.uwcs.co.uk[89.16.166.19] Aug 30 12:49:05 nova postfix/local[32533]: 795B53D558: to=&lt;cmb@chris.boyle.name&gt;, orig_to=&lt;test@example.org&gt;, relay=local, delay=6.1, delays=6.1/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION") Aug 30 12:49:05 nova postfix/qmgr[32518]: 795B53D558: removed </code></pre> <p>Notice it being delivered to <code>cmb</code> at the end: I'd really love to know why.</p> http://superuser.com/questions/17959/linux-joystick-seems-mis-calibrated-in-an-sdl-game-freespace-2-open/19481#19481 2 Answer by Chris Boyle for Linux joystick seems mis-calibrated in an SDL game (Freespace 2 Open) Chris Boyle http://superuser.com/users/4211 2009-08-07T08:40:43Z 2009-08-11T09:35:17Z <p>I noticed the problem in <a href="http://icculus.org/d2x/" rel="nofollow">d2x</a> (a Descent port), which also uses SDL, so I went digging in SDL. <code>testjoystick</code> from the SDL source showed the problem as well. Looking at the <a href="http://www.libsdl.org/cgi/viewvc.cgi/branches/SDL-1.2/src/joystick/linux/SDL%5Fsysjoystick.c?view=markup" rel="nofollow">SDL linux joystick driver</a>, the problem is mentioned. Search for <code>joydev_pattern</code> in that file and you'll see what they're doing; search for <code>calibrate</code> and they do mention this problem. Basically they use <code>/dev/input/event6</code> (or whichever) in preference to <code>/dev/input/js0</code>, unless compiled with <code>--disable-input-events</code>, even knowing the event device can't be calibrated (i.e. the calibration set on <code>js0</code> will be ignored).</p> <p>Having found all that, Google searches involving that <code>configure</code> option reveal that hidden away in the comments to a Linux howto for <code>fs2_open</code>, <a href="http://www.hard-light.net/forums/index.php?topic=17364.msg572070#msg572070" rel="nofollow">someone has actually had this problem already</a>.</p> <p>I have <a href="https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/410187" rel="nofollow">reported this bug</a> to Ubuntu. To work around, pick any one of:</p> <ul> <li>Set <code>SDL_JOYSTICK_DEVICE=/dev/input/js0</code> (you could put this in <code>/etc/environment</code> and reboot to apply it everywhere). <strong>Edit:</strong> SDL will still have the <code>evdev</code> device as a second joystick, so in games like <code>d2x</code> that respond to the second joystick as well by default, visit the options screen and remove those extra bindings.</li> <li>Recompile libSDL with <code>--disable-input-events</code>.</li> <li><code>rmmod evdev</code> (quite likely to lose any unusual input devices you have).</li> </ul> http://superuser.com/questions/17959/linux-joystick-seems-mis-calibrated-in-an-sdl-game-freespace-2-open 1 Linux joystick seems mis-calibrated in an SDL game (Freespace 2 Open) [closed] Chris Boyle http://superuser.com/users/4211 2009-08-04T10:16:41Z 2009-08-11T09:35:17Z <p>I have a USB joystick (Saitek Cyborg 3D) which shows up on my recently installed Ubuntu 9.04 box as <code>/dev/input/js0</code>, and <code>jstest</code> is showing values in the range +-32767 as I would expect. I just dug up a copy of <a href="http://scp.indiegames.us/" rel="nofollow">FreeSpace Open</a>, a game which uses SDL and worked with no problems on a previous Ubuntu install about a year ago, and the joystick seems very mis-calibrated. All axes (X, Y, twist, throttle) seem at least 20% off-center. The X and Y axes at least definitely aren't reaching their end points.</p> <p>A <a href="http://www.nabble.com/SDL-joystick-ranges-have-change-%28Ubuntu%29-td21631811.html#a21631811" rel="nofollow">relevant message</a> on the SDL mailing list in January 2009 received no concrete answers.</p> <p>Here is <a href="http://svn.icculus.org/fs2open/trunk/fs2%5Fopen/code/io/joy-unix.cpp?view=markup" rel="nofollow">joy-unix.cpp</a> from the project source. I'm not quite running trunk, but as you can see from the revision log there, no actual code changes have happened to that file for over 3 years.</p> http://superuser.com/questions/32404/postfix-virtual-alias-maps-delivering-everything-to-one-user-despite-new-domain/32424#32424 Comment by Chris Boyle on Postfix: virtual_alias_maps delivering everything to one user despite new domain Chris Boyle http://superuser.com/users/4211 2009-08-30T16:18:02Z 2009-08-30T16:18:02Z Yep. (As I said, I checked that the .db files are more recent than the plain-text ones.)