[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qmail-ldap
Subject:    Re: 2 domains in auto-reply [SOLVED]
From:       Zdravko Stoychev <zdravko.stoychev () mps ! bg>
Date:       2007-06-08 6:10:07
Message-ID: 4668F2BF.6040903 () mps ! bg
[Download RAW message or body]


Simple solution, we have missed setting up e-mail headers:

# send an autoresponse message
MYNAME="\"$RECIPIENT (Auto-Reply)\" <$RECIPIENT>"
HDRS="$MYHEAD: $MYHOST (Qmail Secretary and Mail Forwarding v1.3)\nFrom: 
$MYNAME\nTo: <$MAILFR>\nContent-Type: text/plain; charset=\"iso-8859-1\""
echo -e "$HDRS\nSubject: $SUBJ\n\n$RESP\n\n$RECIPIENT" | qmail-inject -a 
$MAILFR

Zdravko Stoychev wrote:
> Hi all! We have set up auto-responder script which checks a DB and 
> sends back email
> like this:
> 
> echo -e "$RESP\n\n$RECIPIENT" | mailsubj "$SUBJ" $MAILFR
> 
> The message sent appears (From:) as "user@mps.bg"@mps.bg - it is appended
> twice. We have tryed using qmail-inject and thus replacing From sender 
> using the
> parameter -f$LOCAL, but no go.
> 
> The script is called from run script (DefaultDelivery) like this:
> 
> > /var/qmail/bin/check.sh
> 
> Any clues on this issue?
> 
> My conf:
> 
> qmail home directory: /var/qmail.
> user-ext delimiter: -.
> paternalism (in decimal): 2.
> silent concurrency limit: 500.
> subdirectory split: 23.
> user ids: 503, 504, 505, 0, 506, 507, 508, 509.
> group ids: 503, 504.
> me: My name is mx.mps.bg
> ldapserver: My ldap server is 10.0.0.2:389 10.0.0.3:389
> 
> badmailfrom:
> badmailfrom-unknown: (Default.) Any MAIL FROM from hosts without PTR 
> is allowed.
> 
> badrcptto:
> bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.
> 
> bouncehost: (Default.) Bounce host name is mx.mps.bg.
> 
> bouncemaxbytes: Bounce data limit is 10240 bytes.
> 
> concurrencylocal: Local concurrency is 40.
> 
> concurrencyremote: Remote concurrency is 40.
> 
> custombouncetext: (Default.) No custombouncetext.
> 
> databytes: SMTP DATA limit is 30000000 bytes.
> 
> defaultdomain: Default domain name is mps.bg.
> 
> defaulthost: Default host name is mps.bg.
> 
> dirmaker: Program to create homedirs /var/qmail/bin/autodir.sh.
> 
> doublebouncehost: (Default.) 2B recipient host: mx.mps.bg.
> 
> doublebounceto: (Default.) 2B recipient user: postmaster.
> 
> envnoathost: Presumed domain name is mps.bg.
> 
> goodmailaddr: abuse@mps.bg is allowed in any case.
> 
> helohost: SMTP client HELO host name is mx.mps.bg.
> 
> idhost: (Default.) Message-ID host name is mx.mps.bg.
> 
> localiphost: (Default.) Local IP address becomes mx.mps.bg.
> 
> locals: Messages for mps.bg are delivered locally.
> Messages for mx.mps.bg are delivered locally.
> Messages for www.mps.bg are delivered locally.
> Messages for localhost.mps.bg are delivered locally.
> Messages for mps.local are delivered locally.
> 
> me: My name is mx.mps.bg.
> 
> outgoingip: (Default.) Bind qmail-remote to 0.0.0.0.
> 
> pbscachesize: (Default.) PBS cachesize is 1048576 bytes.
> 
> pbsenv: (Default.) No environment variables will be passed.
> 
> pbsip: (Default.) Bind PBS daemon to 0.0.0.0.
> 
> pbsport: (Default.) PBS deamon listens on port 2821.
> 
> pbssecret: (Default.) PBS shared secret is undefined! Uh-oh.
> 
> pbsservers: (Default.) No PBS servers.
> 
> pbstimeout: (Default.) PBS entries will be valid for 600 seconds.
> 
> percenthack: (Default.) The percent hack is not allowed.
> 
> plusdomain: Plus domain name is mps.bg.
> 
> qmqpcip: (Default.) Bind qmail-qmqpc to 0.0.0.0.
> 
> qmqpservers: (Default.) No QMQP servers.
> 
> queuelifetime: (Default.) Message lifetime in the queue is 604800 
> seconds.
> 
> quotawarning: From: Postmaster <admin@mps.bg>
> Subject: E-mail Quota Warning!
> Content-Type: text/plain
> Your MPS mail folders size has reached or is above 90% of your mail 
> quota.
> Please delete any unuseful messages or archive some old messages in order
> to free some space on the mail server.
> If you are using IMAP mail account once you delete some messages make 
> sure
> you do a purge for that folders too in order to clear all deleted items.
> Thank you for your understanding!
> MPS Admins
> admin@mps.bg
> 
> rbllist: RBL to check:         bl.spamcop.net reject    127.0.0.2 See 
> http://spamcop.net/.
> RBL to check:       sbl.spamhaus.org reject    127.0.0.2 See 
> http://www.spamhaus.org/SBL.
> RBL to check:          list.dsbl.org reject    127.0.0.2 See 
> http://dsbl.org/main.
> RBL to check:            or.orbl.org reject    127.0.0.2 See 
> http://www.orbl.org/.
> RBL to check:  spamguard.leadmon.net addheader 127.0.0.2 Address is a 
> dialup address..
> 
> rcpthosts:
> morercpthosts: (Default.) No effect.
> 
> morercpthosts.cdb: (Default.) No effect.
> 
> relaymailfrom:
> smtpgreeting: SMTP greeting: 220 MPS Ltd (Linux 2.6 SMP Fri Oct 20 
> 13:51:51 EEST 2006 i686 athlon i386 GNU/Linux).
> 
> smtproutes: (Default.) No artificial SMTP routes.
> 
> timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.
> 
> timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.
> 
> timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.
> 
> virtualdomains: (Default.) No virtual domains.
> 
> 
> 
> Now the qmail-ldap specific files:
> 
> ldapbasedn: LDAP basedn: cn=users,dc=mps,dc=local.
> 
> ldapserver: 10.0.0.2:389
> 10.0.0.3:389
> 
> ldaplogin: LDAP login: cn=mx, cn=users, dc=mps, dc=local.
> 
> ldappassword: LDAP password: <hidden>.
> 
> ldaptimeout: LDAP server timeout is 30 seconds.
> 
> ldapuid: Default UID is 510.
> 
> ldapgid: Default GID is 510.
> 
> ldapobjectclass: The objectclass to limit ldap filter is user.
> 
> ldapmessagestore: Prefix for non absolute paths is /home/vmail.
> 
> ldapdefaultdotmode: Default dot mode for ldap users is dotonly.
> 
> defaultquotasize: Mailbox size quota is 2097152000 bytes (0 is 
> unlimited).
> 
> defaultquotacount: (Default.) Mailbox count quota is 0 messages (0 is 
> unlimited).
> 
> ldaplocaldelivery: Local passwd lookup is 1 (1 = on, 0 = off).
> 
> ldaprebind: Ldap rebinding is 1 (1 = on, 0 = off).
> 
> ldapcluster: Clustering is 0 (1 = on, 0 = off).
> 
> ldapclusterhosts: (Default.) Messages for me are not redirected.
> 
> 

-- 
  Zdravko Stoychev
  System Software and Support
  MPS Ltd.
  zdravko.stoychev@mps.bg
  +359-2-491-1827 (ext.271)

Ако не отговарям на писмата  и - погледнете тук: http://6lyokavitza.org/mail

--------------------------------------
"Quality is never an accident; it is always the result of high intention, sincere \
effort, intelligent direction, and skillful execution; it presents the wise choice of \
                many alternatives."
- W. Foster.

--------------------------------------
This e-mail is intended only for the addressee(s) and may contain privileged and \
confidential information. It should not be disseminated, distributed, or copied. If \
you have received this e-mail message by mistake, please inform the sender, and \
delete it from your system.


["smime.p7s" (application/x-pkcs7-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic