
07-17-2007
|
|
|
Re: postfix+domains
sg_pl wrote:
> Użytkownik "Alexander Dalloz" <adalloz@arcor.de> napisał w wiadomości
> news:pan.2007.07.14.22.43.54@arcor.de...
>> Am Fri, 13 Jul 2007 07:43:08 +0200 schrieb sg_pl:
>>
>>> Hello,
>>>
>>>
>>> I have a postfix mail server in Slackware. In main.cf I have this
>>> configuration:
>>>
>>> myhostname = domain.com
>>> myorigin = domain.com
>>> mydomain = domain.com
>>> alias_maps = hash:/etc/aliases
>>> virtual_maps = hash:/etc/postfix/virtual inet_interfaces = all
>>> mydestination = $mydomain, xxx.domain.com, yyy.domain.com,
>>> otherdomain.com relay_domains = $mydestination
>>>
>>> The mail server works fine but when I send email from address
>>> aaa@xxx.domain.com or xxx@otherdomain.com then my recipient in the mail
>>> properties have information is that email is from aaa@xxx.domain.com but
>>> the second email is from xxx@domain.com instead of xxx@otherdomain.com.
>>> What is wrong in the configuration of postfix?
>>>
>>> Thanks for help, Best Regards
>>> Sebastian
>> Sorry, your posting lacks important information: how do you send mail
>> out? Using which mail client? And provide mail log content for the cases
>> where you see the described results. And according the results: where
>> exactly do the false mail addresses appear - as the header From or the
>> envelope sender? If you can't answer this question, then provide full
>> mail headers as well.
>>
>> Alexander
>>
>> P.S. Providing Postfix setup information it is more reliable to print out
>> "postconf -n" rather than showing main.cf content.
>
> Hi
>
> Im sending mail from mail client (Outlook Express), yes the false mail
> adress is in mail header. Below the configuration and log. The mail adreess
> should be testing@otherdomain.com but there is testing@domain.com - why?
>
> Regards
> Sebastian
>
> Jul 17 07:40:11 domain postfix/smtpd[10054]: connect from
> unknown[195.250.249.165]
> Jul 17 07:40:11 domain postfix/smtpd[10054]: CDF1A1269C8:
> client=unknown[195.250.249.165], sasl_method=LOGIN, sasl_username=testing
> Jul 17 07:40:11 domain postfix/cleanup[10086]: CDF1A1269C8:
> message-id=<007601c7c837$6ebf8470$75010a0a@admin>
> Jul 17 07:40:11 domain postfix/qmgr[11757]: CDF1A1269C8:
> from=testing@domain.com, size=3096, nrcpt=1 (queue active)
> Jul 17 07:40:12 domain postfix/smtp[10056]: CDF1A1269C8:
> to=<jn@poczta.onet.pl>, relay=mx.poczta.onet.pl[213.180.130.86], delay=1,
> status=deferred (host mx.poczta.onet.pl[213.180.130.86] said: 450 4.7.1 W$
> Jul 17 07:40:14 domain postfix/smtpd[10054]: disconnect from
> unknown[195.250.249.165]
>
>
>
>
> alias_maps = hash:/etc/aliases
> broken_sasl_auth_clients = yes
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> daemon_directory = /usr/libexec/postfix
> debug_peer_level = 2
> default_destination_concurrency_limit = 10
> html_directory = no
> inet_interfaces = all
> local_destination_concurrency_limit = 2
> mail_name = SG Server 2.23
> mail_owner = postfix
> mail_spool_directory = /var/spool/mail
> mailbox_command = /usr/bin/procmail
> mailbox_size_limit = 51200000
> mailq_path = /usr/bin/mailq
> manpage_directory = /usr/local/man
> maximal_queue_lifetime = 2d
> message_size_limit = 15120000
> mydestination = $mydomain, xxx.domain.com, yyy.domain.com, otherdomain.com
> mydomain = domain.com
> myhostname = domain.com
> mynetworks = 10.10.3.0/24, 127.0.0.0/8
> myorigin = domain.com
> newaliases_path = /usr/bin/newaliases
> queue_directory = /var/spool/postfix
> queue_minfree = 10000000
> queue_run_delay = 30m
> readme_directory = no
> relay_domains = $mydestination
> sample_directory = /etc/postfix
> sender_canonical_maps = hash:/etc/postfix/sender_canonical
> sendmail_path = /usr/sbin/sendmail
> setgid_group = postdrop
> smtpd_banner = $hostname SG Server 2.23
> smtpd_recipient_limit = 200
> smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,
> reject_unauth_destination
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_security_options = noanonymous
> smtpd_sender_login_maps = hash:/etc/postfix/login_maps
> smtpd_sender_restrictions = reject_sender_login_mismatch
> unknown_local_recipient_reject_code = 450
>
>
Postfix rewrites From: addresses so they match $mydomain. This prevents
its clients from sending mail with forged or misconfigured From: domain
names.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
|