Re: Catchall and forward to external address
On 12 August 2015 at 06:17, Harald Linden harald.lin...@thelow.net wrote: Hi, I'm a bit stumped. I'm hosting a webserver with various domains and I am using an external mailservice for one of them (let's say domain1.tld). I'd like to catch all mails to the other ones (domain2.tld, domain3.tld etc.) and forward it to my externally hosted address ad...@domain1.tld. So my idea was: /etc/smtpd.conf: listen on all table domains file:/etc/mail/domains table lists file:/etc/mail/lists accept from any for domain domains virtual lists forward-only /etc/mail/aliases: @ ad...@domain1.tld /etc/mail/domains: domain2.tld domain3.tld Now, while I think that this should work, it doesn't work: RCPT TO:webmas...@domain2.tld = 550 Invalid recipient And I do not have the faintest idea why. Can someone poke me in the right direction? As per smtpd.conf(5): forward-onlyMail is accepted for local recipients ONLY if it is redirected to an external address via an alias or a ~/.forward. Example: accept for domain opensmtpd.org forward-only -- So to me, it doesn't look like you have a valid alias set up (no actual explicit webmaster alias). Alias tables are separated by : As per webmaster: ad...@domain1.tld In OpenBSD 5.7 I achieve the above but just have it deliver to mbox (though never gets delivered there, the address restamping rolls it around and ships it on). Forward-only looks like a good feature if used correctly, I'll probably have a use or two for it come OpenBSD 5.8. References: aliases(5) smtpd.conf(5) table(5) -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
build error: conflicting types for 'snprintf' on OS X
so far I used only OpenBSD version today, I’m trying to compile OpenSMTPD cloned from git on OS X Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64 instructions from README.md during make, I ended with Making all in openbsd-compat gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat -I/opt/local -I/opt/local -g -O2 -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -c -o arc4random.o arc4random.c In file included from arc4random.c:27: In file included from ./includes.h:77: ./openbsd-compat.h:152:5: warning: incompatible redeclaration of library function 'snprintf' [-Wincompatible-library-redeclaration] int snprintf(char *, size_t, SNPRINTF_CONST char *, ...); ^ ./openbsd-compat.h:152:5: note: 'snprintf' is a builtin with type 'int (char *, unsigned long, const char *, ...)' 1 warning generated. gcc -DHAVE_CONFIG_H -I. -I.. -I../smtpd -I../openbsd-compat -I/opt/local -I/opt/local -g -O2 -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -fno-builtin-memset -c -o base64.o base64.c In file included from base64.c:47: In file included from ./includes.h:77: ./openbsd-compat.h:152:5: warning: incompatible redeclaration of library function 'snprintf' [-Wincompatible-library-redeclaration] int snprintf(char *, size_t, SNPRINTF_CONST char *, ...); ^ ./openbsd-compat.h:152:5: note: 'snprintf' is a builtin with type 'int (char *, unsigned long, const char *, ...)' In file included from base64.c:58: /usr/include/stdio.h:421:6: error: conflicting types for 'snprintf' int snprintf(char * __restrict, size_t, const char * __restrict, ...) __printflike(3, 4); ^ ./openbsd-compat.h:152:5: note: previous declaration is here int snprintf(char *, size_t, SNPRINTF_CONST char *, ...); ^ 1 warning and 1 error generated. make[2]: *** [base64.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 -- Jiri Navratil smime.p7s Description: S/MIME cryptographic signature
Re: Catchall and forward to external address
- /etc/mail/aliases + /etc/mail/lists Sorry about that. -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org
Catchall and forward to external address
Hi, I'm a bit stumped. I'm hosting a webserver with various domains and I am using an external mailservice for one of them (let's say domain1.tld). I'd like to catch all mails to the other ones (domain2.tld, domain3.tld etc.) and forward it to my externally hosted address ad...@domain1.tld. So my idea was: /etc/smtpd.conf: listen on all table domains file:/etc/mail/domains table lists file:/etc/mail/lists accept from any for domain domains virtual lists forward-only /etc/mail/aliases: @ ad...@domain1.tld /etc/mail/domains: domain2.tld domain3.tld Now, while I think that this should work, it doesn't work: RCPT TO:webmas...@domain2.tld = 550 Invalid recipient And I do not have the faintest idea why. Can someone poke me in the right direction? -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org