Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: elmarconi on March 26, 2007, 02:54:09 PM
-
I noticed something strange, to which I hope to be able to shine a light.
I rely heavily on Pegasus email, and Pegasus enables me to send email to local users without having to add the full domain name, just send it to combined email adresses user1, user2, externaluser@domain.example without nagging.
I've done this on SME6.0.1 by using ofmipd on port 26 (http://cr.yp.to/proto/ofmip.html) which worked smooth up till now.
I'm moving to SME7.1.3 but haven't found a smooth way of doing the same. Adding ofmipd as a service is my least preferable option, since qpsmtpd has plugin capabilities available. And if it's there, use it!
Tried to understand the qpsmtpd plugin found at http://www.nntp.perl.org/group/perl.qpsmtpd/2003/10/msg541.html but failed miserably due to bad skills.
Sending email to user, user2 shows strange delivery lines in /var/log/qmail/current:
starting delivery 32: msg 297687 to local @smeserver7.domain.example
Normal delivery looks like:
starting delivery 25: msg 296866 to local alias-localdelivery-user@domain.example
Note the missing user! Mail is gone, and I cannot seem to find it anywhere.
Meanwhile i noticed that Horde in SME7.1.3 DOES rewrite email adresses without @ sign, like I want to. user gets rewritten to user@domain.example.
Anyone care to comment or hint me in the right directions?
-
Well, since I got no feedback on this issue I swallowed the bitter one, and installed ofmipd on port 26.
Short description:
Google: "mess822 rpm"
wget mess822-0.58-1.i386.rpm
rpm -ihv mess822-0.58-1.i386.rpm
I need to template the next part, bits and pieces:
What I did as a quick hack:
Setup ofmipd service:
mkdir -p /var/service/ofmipd
mkdir -p /var/service/ofmipd/supervise
--/var/service/ofmipd/run--
#!/bin/sh
exec 2>&1
echo "*** Starting qmail-ofmipd ..."
exec /usr/local/bin/softlimit -d 25000000 -s 25000000 -l 25000000 \
tcpsvd \
-hv \
-c ${INSTANCES:-25} \
-l ${LOCALNAME:-0} \
${IP:-0} \
${PORT:-26} \
/usr/bin/ofmipd
--/var/service/ofmipd/run--
Fix logging:
mkdir -p /var/service/ofmipd/log
mkdir -p /var/service/ofmipd/log/supervise
mkdir -p /var/log/ofmipd
chmod smelog:smelog /var/log/ofmipd
--/var/service/ofmipd/log/run--
#!/bin/sh
exec \
/usr/local/bin/setuidgid smelog \
/usr/local/bin/multilog t s5000000 \
/var/log/ofmipd
--/var/service/ofmipd/log/run--
Add service to config database:
config set ofmipd service status enabled TCPPort 26 UDPPort 26 access private (UDP also needed??)
signal-event remoteaccess-update (needed??)
cd /etc/rc.d/init.d
ln -s daemontools ofmipd
cd /etc/rc.d/rc7.d
ln -s /etc/rc.d/init.d/e-smith-service S85ofmipd
service ofmipd restart
I think that was it.
No /var/qmail/control/rewrite file is used as the man ofmipd says:
If rewrite does not exist, new-inject and ofmipd use the control files defaultdomain, defaulthost, and plusdomain in the following instructions:
*.:
=:defaulthost
*+:.plusdomain
?:.defaultdomain