So you don't have any idea how to make postfix accept the emails?

Anyone?

2009/4/27 morphium <morph...@morphium.info>:
> I did now set
> virtual_alias_maps = hash:/etc/postfix/virtual
>
> modified /etc/postfix/virtual to:
> .* t.re...@dotsource.de
> [thats me]
>
> did postmap /etc/postfix/virtual
>
> and restarted postfix
>
> # postconf -n
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> append_dot_mydomain = no
> biff = no
> config_directory = /etc/postfix
> default_transport = error
> inet_interfaces = all
> mailbox_command = procmail -a "$EXTENSION"
> mailbox_size_limit = 0
> mydestination = dsapp02.DOTSOURCE.local, localhost.DOTSOURCE.local, localhost
> myhostname = dsapp02.DOTSOURCE.local
> mynetworks = 127.0.0.0/8 172.16.26.0/24 [::ffff:127.0.0.0]/104 [::1]/128
> myorigin = /etc/mailname
> readme_directory = no
> recipient_delimiter = +
> relay_transport = error
> relayhost = mail.dotsource.de
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
> smtpd_recipient_restrictions = permit, reject
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
> smtpd_use_tls = yes
> virtual_alias_maps = hash:/etc/postfix/virtual
>
>
> If I do now:
> # telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 dsapp02.DOTSOURCE.local ESMTP Postfix (Debian/GNU)
> HELO dsapp02
> 250 dsapp02.DOTSOURCE.local
> MAIL FROM:<t...@dsapp02>
> 250 2.1.0 Ok
> RCPT TO:<t.re...@dotsource.de>
> 550 5.1.1 <t.re...@dotsource.de>: Recipient address rejected: dotsource.de
> RCPT TO:<b...@domaindoesntexist.org>
> 550 5.1.1 <b...@domaindoesntexist.org>: Recipient address rejected:
> domaindoesntexist.org
>
> As you can see, it rejects the email.
>
> As postconf shows, I've set smtpd_recipient_restrictions = permit,
> reject, so it should accept EVERY email.
>
> So how to make postfix accepting it?
>
> Ah, mail.log output:
> Apr 27 12:01:05 dsapp02 postfix/smtpd[10253]: connect from 
> localhost[127.0.0.1]
> Apr 27 12:02:02 dsapp02 postfix/smtpd[10253]: warning: restriction
> `reject' after `permit' is ignored
> Apr 27 12:02:02 dsapp02 postfix/smtpd[10253]: NOQUEUE: reject: RCPT
> from localhost[127.0.0.1]: 550 5.1.1 <t.re...@dotsource.de>: Recipient
> address rejected: dotsource.de; from=<t...@dsapp02>
> to=<t.re...@dotsource.de> proto=SMTP helo=<dsapp02>
> Apr 27 12:02:17 dsapp02 postfix/smtpd[10253]: warning: restriction
> `reject' after `permit' is ignored
> Apr 27 12:02:17 dsapp02 postfix/smtpd[10253]: NOQUEUE: reject: RCPT
> from localhost[127.0.0.1]: 550 5.1.1 <b...@domaindoesntexist.org>:
> Recipient address rejected: domaindoesntexist.org; from=<t...@dsapp02>
> to=<b...@domaindoesntexist.org> proto=SMTP helo=<dsapp02>
> Apr 27 12:03:55 dsapp02 postfix/smtpd[10253]: disconnect from
> localhost[127.0.0.1]
>
> Thanks in advance,
> morphium
>
>
> 2009/4/27 Barney Desmond <barneydesm...@gmail.com>:
>> 2009/4/27 morphium <morph...@morphium.info>:
>>> I want my postfix test system to accept eMail to any address and
>>> redirect it i.e. t...@morphium.info (and not to the specified
>>> recipient).
>>> How could I accomplish that?
>>> Could recipient_canoncial_maps or virtual_alias_maps be helpful?
>>> I can't get it working on my own, so I would be glad of a bit of assistance.
>>
>> virtual_alias_maps will do the job for you, though I believe you need
>> to be able to enumerate all the possible domains (Postfix makes it
>> difficult for you to fail really hard, like being an open relay). I
>> list all the domains in virtual_alias_domains, then add a catchall on
>> each one to do whatever address you want. I suspect there may be a
>> better way, someone here might know.
>>
>> Also, you need to provide the output of "postconf -n" if you're to get
>> good help. Saying "I can't get it working" doesn't tell us anything.
>>
>

<div><br></div>

Reply via email to