Hi,
Your issue is very likely caused by the fact that envelope structure
has changed between your last version of OpenSMTPD and yesterday.
How old was your previous -current ?
Gilles
On Sat, Oct 22, 2011 at 05:11:06PM -0300, Hugo Osvaldo Barrera wrote:
> Hi.
>
> After my last upgrade to -current (last night), smtpd failed to start.
> I'm including the output of running in on foreground below, and my
> config file.
>
> Looking at the error a bit, I *guessed* there was some issue with
> something in the spool.
> So I tried moving /var/spool/smtpd to some other temporary location, and
> smtpd ran fine.
>
> What I'm afraid of, is that the data inside the old "/var/spool/smtpd"
> contains mails that may not have been delivered - since I had broken
> dovecot, and it did not run for about a day, so received mail is
> probalbly still sitting there.
>
>
>
>
> What could caused this issue in the first place? How can I recover the
> e-mails inside the old spool directory?
>
> I can open the files and look at them, but there's plenty, and that's
> not really friendly.
> Would it safe to move them over to smtpd's newly created spool directory
> one by one, or will I break more stuff/it just won't work?
>
>
> # smtpd -dvv
> no DH parameters found in /etc/mail/certs/em0.dh
> using built-in DH parameters
> startup [debug mode]
> queue_purge: invalid evpid
> queue_purge: invalid evpid
> ramqueue: offline queue loading in progress
> parent_send_config: configuring smtp
> parent_send_config_client_certs: configuring smtp
> parent_send_config_ruleset: reloading rules and maps
> parent_send_config_ruleset: reloading rules and maps
> imsg: PROC_MFA <- PROC_PARENT: IMSG_CONF_START (len=0)
> imsg: PROC_MFA <- PROC_PARENT: IMSG_CONF_END (len=0)
> queue_purge: invalid evpid
> imsg: PROC_SMTP <- PROC_PARENT: IMSG_CONF_START (len=0)
> imsg: PROC_LKA <- PROC_PARENT: IMSG_CONF_START (len=0)
> imsg: PROC_MTA <- PROC_PARENT: IMSG_CONF_START (len=0)
> ramqueue: offline queue loading interrupted
> imsg: PROC_LKA <- PROC_PARENT: IMSG_CONF_MAP (len=2104)
> imsg: PROC_MTA <- PROC_PARENT: IMSG_CONF_END (len=0)
> ramqueue: queue loading in progress
> fatal: fsqueue_envelope_load: fread
> imsg: PROC_SMTP <- PROC_PARENT: IMSG_CONF_SSL (len=12142)
> imsg: PROC_LKA <- PROC_PARENT: IMSG_CONF_MAP_CONTENT (len=2064)
> queue handler exiting
> control process exiting
> lost child: runner exited abnormally
> mail filter exiting
> mail delivery agent exiting
> mail transfer agent exiting
> smtp server exiting
> imsg: PROC_LKA <- PROC_PARENT: IMSG_CONF_MAP_CONTENT (len=2064)
> lookup agent exiting
> parent terminating
>
>
>
>
>
> # cat /etc/mail/smtpd.conf
> # $OpenBSD: smtpd.conf,v 1.2 2009/11/03 22:32:10 gilles Exp $
>
> # This is the smtpd server system-wide configuration file.
> # See smtpd.conf(5) for more information.
>
> listen on lo0
> listen on em0
> listen on em0 smtps enable auth #465
> listen on em0 port 587 smtps enable auth
>
> hostname "mail.hugoosvaldobarrera.com.ar"
>
> map "aliases" { source db "/etc/mail/aliases.db" }
>
> accept for local alias aliases deliver to mbox
>
> accept from all for domain "osvaldobarrera.com.ar" alias aliases
> deliver to mda "/usr/local/libexec/dovecot/dovecot-lda -d %u@%d"
> accept from all for domain "hugoosvaldobarrera.com.ar" alias aliases
> deliver to mda "/usr/local/libexec/dovecot/dovecot-lda -d
> h...@osvaldobarrera.com.ar"
> accept for allrelay
>
>
>
>
>
> # dmesg
> OpenBSD 5.0 (GENERIC) #44: Thu Aug 4 14:27:05 MDT 2011
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 535756800 (510MB)
> avail mem = 507461632 (483MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfbd3f (10 entries)
> bios0: vendor QEMU version "QEMU" date 01/01/2007
> acpi0 at bios0: rev 0
> acpi0: sleep states S3 S4 S5
> acpi0: tables DSDT FACP APIC
> acpi0: wakeup devices
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpicpu0 at acpi0
> mpbios at bios0 not configured
> vmt0 at mainbus0
> vmware: open failed, eax=564d5868, ecx=001e, edx=5658
> vmt0: failed to open backdoor RPC channel (TCLO protocol)
> cpu0 at mainbus0: (uniprocessor)
> cpu0: QEMU Virtual CPU version 0.9.1, 2667.06 MHz
> cpu0:
> FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,LONG
> cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
> 64b/line 16-way L2 cache
> cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
> cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
> pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
> pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
> channel 0 wired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 cha