Re: mail to multiple recipient doesn't work

2015-11-12 Thread Dan White via Info-cyrus

On 11/12/15 21:22 +0100, Daniel Schröter wrote:

Hello,

On 11/11/2015 10:13 PM, Dan White wrote:

What does syslog say?


Nothing special. Mail to cyrus.test and cyrus.test2. But only
cyrus.test2 appears in the logs:


I'm reordering, to make this easier to follow:

Nov 12 21:09:45 fetchmail[6236]: awakened by User defined signal 1
Nov 12 21:09:45 fetchmail[6236]: 1 message for wp1116213-email at 
wp381.webpack.hosteurope.de (3083 octets).
Nov 12 21:09:45 postfix/smtpd[15774]: connect from localhost[127.0.0.1]
Nov 12 21:09:45 postfix/smtpd[15774]: 8EC4D92331C: client=localhost[127.0.0.1]
Nov 12 21:09:45 postfix/cleanup[15776]: 8EC4D92331C: 
message-id=<5644f1fc.4020...@gmx.de>
Nov 12 21:09:45 fetchmail[6236]: reading message 
wp1116213-em...@wp381.webpack.hosteurope.de:1 of 1 (3083 octets) flushed
Nov 12 21:09:45 postfix/qmgr[15061]: 8EC4D92331C: from=, 
size=3416, nrcpt=1 (queue active)
Nov 12 21:09:45 postfix/smtpd[15774]: disconnect from localhost[127.0.0.1]
Nov 12 21:09:45 postfix/lmtp[15778]: 8EC4D92331C: to=, 
relay=smtp.example.com[/var/run/cyrus/socket/lmtp], delay=0.2, delays=0.07/0/0.01/0.11, 
dsn=2.1.5, status=sent (250 2.1.5 Ok SESSIONID=)
Nov 12 21:09:45 postfix/qmgr[15061]: 8EC4D92331C: removed

Nov 12 21:09:45 cyrus/master[15779]: about to exec /usr/lib/cyrus/bin/lmtpd
Nov 12 21:09:45 cyrus/lmtpunix[15779]: executed
Nov 12 21:09:45 cyrus/lmtpunix[15779]: accepted connection
Nov 12 21:09:45 cyrus/lmtpunix[15779]: lmtp connection preauth'd as postman
Nov 12 21:09:45 cyrus/lmtpunix[15779]: WARNING: sieve script 
/var/spool/sieve/c/cyrus^test2/defaultbc doesn't exist: No such file or 
directory
Nov 12 21:09:45 cyrus/lmtpunix[15779]: Delivered: <5644f1fc.4020...@gmx.de> to 
mailbox: user.cyrus^test2
Nov 12 21:09:45 cyrus/lmtpunix[15779]: USAGE cyrus^test2 user: 0.00 sys: 
0.004000

Postfix is clearly not delivering a message to cyrus.t...@example.com,
based on your output, which means cyrus isn't getting it.

Are you using fetchmail to deliver these messages? If not, what is the smtp
client in this scenario?


What type of filesystem do you have?


ext4

And also imapd.conf:


Yes, that's what I was looking for instead of cyrus.conf.


duplicatesuppression: no
altnamespace: no
unixhierarchysep: yes
lmtp_downcase_rcpt: yes
admins: cyrus
lmtpsocket: /var/run/cyrus/socket/lmtp


--
Dan White

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: mail to multiple recipient doesn't work

2015-11-12 Thread Daniel Schröter via Info-cyrus
On 11/12/2015 09:47 PM, Dan White wrote:
> Are you using fetchmail to deliver these messages? 

Yes, and that's the problem. Thanks very much.

My provider doesn't set the "Envelope-to" correct for more then one
recipient :-(

Thanks again!

Bye

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: mail to multiple recipient doesn't work

2015-11-12 Thread Daniel Schröter via Info-cyrus
Hello,

On 11/11/2015 10:13 PM, Dan White wrote:
> What does syslog say?

Nothing special. Mail to cyrus.test and cyrus.test2. But only
cyrus.test2 appears in the logs:

Nov 12 21:09:45 fetchmail[6236]: awakened by User defined signal 1
Nov 12 21:09:45 fetchmail[6236]: 1 message for wp1116213-email at
wp381.webpack.hosteurope.de (3083 octets).
Nov 12 21:09:45 postfix/smtpd[15774]: connect from localhost[127.0.0.1]
Nov 12 21:09:45 postfix/smtpd[15774]: 8EC4D92331C:
client=localhost[127.0.0.1]
Nov 12 21:09:45 postfix/cleanup[15776]: 8EC4D92331C:
message-id=<5644f1fc.4020...@gmx.de>
Nov 12 21:09:45 fetchmail[6236]: reading message
wp1116213-em...@wp381.webpack.hosteurope.de:1 of 1 (3083 octets) flushed
Nov 12 21:09:45 postfix/qmgr[15061]: 8EC4D92331C:
from=, size=3416, nrcpt=1 (queue active)
Nov 12 21:09:45 cyrus/master[15779]: about to exec /usr/lib/cyrus/bin/lmtpd
Nov 12 21:09:45 cyrus/lmtpunix[15779]: executed
Nov 12 21:09:45 cyrus/lmtpunix[15779]: accepted connection
Nov 12 21:09:45 cyrus/lmtpunix[15779]: lmtp connection preauth'd as postman
Nov 12 21:09:45 cyrus/lmtpunix[15779]: WARNING: sieve script
/var/spool/sieve/c/cyrus^test2/defaultbc doesn't exist: No such file or
directory
Nov 12 21:09:45 postfix/smtpd[15774]: disconnect from localhost[127.0.0.1]
Nov 12 21:09:45 cyrus/lmtpunix[15779]: Delivered:
<5644f1fc.4020...@gmx.de> to mailbox: user.cyrus^test2
Nov 12 21:09:45 cyrus/lmtpunix[15779]: USAGE cyrus^test2 user: 0.00
sys: 0.004000
Nov 12 21:09:45 postfix/lmtp[15778]: 8EC4D92331C:
to=,
relay=smtp.example.com[/var/run/cyrus/socket/lmtp], delay=0.2,
delays=0.07/0/0.01/0.11, dsn=2.1.5, status=sent (250 2.1.5 Ok
SESSIONID=)
Nov 12 21:09:45 postfix/qmgr[15061]: 8EC4D92331C: removed


> What type of filesystem do you have?

ext4


> What does your cyrus.conf config look like?

# cat /etc/cyrus.conf
# Debian defaults for Cyrus IMAP server/cluster implementation
# see cyrus.conf(5) for more information
#
# All the tcp services are tcpd-wrapped. see hosts_access(5)

START {
# do not delete this entry!
recover cmd="/usr/sbin/cyrus ctl_cyrusdb -r"

# this is only necessary if idlemethod is set to "idled" in
imapd.conf
#idled  cmd="idled"

# this is useful on backend nodes of a Murder cluster
# it causes the backend to syncronize its mailbox list with
# the mupdate master upon startup
#mupdatepush   cmd="/usr/sbin/cyrus ctl_mboxlist -m"

# this is recommended if using duplicate delivery suppression
delprunecmd="/usr/sbin/cyrus expire -E 3"
# this is recommended if caching TLS sessions
tlsprunecmd="/usr/sbin/cyrus tls_prune"
}

# UNIX sockets start with a slash and are absolute paths
# you can use a maxchild=# to limit the maximum number of forks of a service
# you can use babysit=true and maxforkrate=# to keep tight tabs on the
service
# most services also accept -U (limit number of reuses) and -T (timeout)
SERVICES {
# --- Normal cyrus spool, or Murder backends ---
# add or remove based on preferences
imapcmd="imapd -U 30" listen="imap" prefork=0
maxchild=100
#imaps  cmd="imapd -s -U 30" listen="imaps" prefork=0
maxchild=100
#   pop3cmd="pop3d -U 30" listen="pop3" prefork=0
maxchild=50
#pop3s  cmd="pop3d -s -U 30" listen="pop3s" prefork=0
maxchild=50

#   nntpcmd="nntpd -U 30" listen="nntp" prefork=0
maxchild=100
#nntps  cmd="nntpd -s -U 30" listen="nntps" prefork=0
maxchild=100

# At least one form of LMTP is required for delivery
# (you must keep the Unix socket name in sync with imap.conf)
#lmtp   cmd="lmtpd" listen="localhost:lmtp" prefork=0
maxchild=20
lmtpunixcmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20
# --

# useful if you need to give users remote access to sieve
# by default, we limit this to localhost in Debian
sieve   cmd="timsieved" listen="localhost:sieve"
prefork=0 maxchild=100

# this one is needed for the notification services
notify  cmd="notifyd"
listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1

# --- Murder frontends -
# enable these and disable the matching services above,
# except for sieve (which deals automatically with Murder)

# mupdate database service - must prefork at least 1
# (mupdate slaves)
#mupdate   cmd="mupdate" listen=3905 prefork=1
# (mupdate master, only one in the entire cluster)
#mupdate   cmd="mupdate -m" listen=3905 prefork=1

# proxies that will connect to the backends
#imap   cmd="proxyd" listen="imap" prefork=0 maxchild=100
#imaps  cmd="proxyd -s" 

Re: mail to multiple recipient doesn't work

2015-11-12 Thread Dan White via Info-cyrus

On 11/12/15 22:04 +0100, Daniel Schröter wrote:

On 11/12/2015 09:47 PM, Dan White wrote:

Are you using fetchmail to deliver these messages?


Yes, and that's the problem. Thanks very much.

My provider doesn't set the "Envelope-to" correct for more then one
recipient :-(


The envelop to is likely set by fetchmail. You could run it in multi-drop
mode, but that asking for trouble if you receive emails with remote CC
recipients, in that you'll be sending out duplicate emails. You might be
able to do some Postfix magic to work around that.

--
Dan White

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: mail to multiple recipient doesn't work

2015-11-11 Thread Dan White via Info-cyrus

On 11/11/15 22:02 +0100, Daniel Schröter via Info-cyrus wrote:

I deliver mail to cyrus (2.4.12) with postfix (2.9.6) under ubuntu by lmtp.

If a mail has multiple recipient just one recipient gets the mail. No
error occur in logs by bounced mail. AFAIK cyrus should generate
hardlinks for this(?). On the filesystem there is no additional file for
the other recipient.

My postfix configuration:

# postconf  -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
debug_peer_list = 127.0.0.1
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps =
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
message_size_limit = 0
mydestination = example.com, smtp.example.com, example.de, localhost
mydomain = example.com
myhostname = smtp.example.com
mynetworks = 192.168.0.0/16 127.0.0.0/8 [:::127.0.0.0]/104 [::1]/128
myorigin = $mydomain
readme_directory = no
recipient_delimiter = +
relay_domains = $mydestination
relayhost = [wp381.webpack.hosteurope.de]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous,noplaintext
smtp_sasl_tls_security_options = noanonymous
smtp_use_tls = yes
smtpd_banner = The SMTP-Server


What does syslog say? What type of filesystem do you have? What does your
cyrus.conf config look like?

--
Dan White

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus