2017-05-03 10 views
-1

Exim 필터 파일을 사용하여 지정된 작성자 주소에서 메일을 수락 한 다음 지정된 구독자 주소로 전달하는 뉴스 레터를 만들고 싶습니다. 아래는 작동하지만보다 우아하고 견고한 접근 방법이 있습니까?Exim 필터를 사용하여 뉴스 레터를 만드는 방법은 무엇입니까?

# Exim filter 
if 
    $reply_address contains "[email protected]" or 
    $reply_address contains "[email protected]" 
then 
    seen 
    deliver [email protected] 
    deliver [email protected] 
    deliver [email protected] 
endif 

답변

0

수신자를 결정하기 위해 보낸 사람 주소를 사용하는 것은 드문 경우입니다. 나는 별칭 파일 일뿐입니다. 하나에 메일 링리스트를 유지하기 위해이 구성

exim.conf

system_aliases: 

    driver = redirect 
    allow_fail 
    allow_defer 
    data = ${lookup{$local_part}lsearch{/etc/aliases}} 
    file_transport = address_file 
    pipe_transport = address_pipe 

의/etc/별칭

mailinglist: [email protected], [email protected], [email protected] 
+0

수를 메일 링리스트 너 expla 이걸 좀 더 들으시겠습니까? 이것이 기여자 목록을 어떻게 허용합니까? – u003f

+0

별칭 파일을 사용하여 의사 주소를 반복 목록에 매핑 –

+0

참여자는 무엇입니까? - 사람들 (여기 eric 및 graham)은 ** 뉴스 레터에 ** 게시 할 수 있습니까? – u003f

0

사용 : 당신은 오프 시스템 별칭 라우터를 기반으로 수 파일, 한 줄에 하나의 주소.

exim.conf

# append "mailinglist" to local domains so that "mailinglist" is 
# recognized as a domain we handle. Alternatively, you could just 
# use your own domain and not bother with this 

domainlist local_domains = @ : localhost : localhost.localdomain : mydomain.com : mailinglist 

... 

begin routers 

... 

mailing_lists: 
    driver = redirect 
    domains = mailinglist 
    no_more 
    file = /etc/exim/mailinglists/$local_part 
    no_check_local_user 
    forbid_pipe 
    forbid_file 
    errors_to = [email protected] 

을/etc/수출입/메일 링리스트가/list01

[email protected] 
[email protected] 
[email protected] 

보내기 테스트 메시지는 "list01"

echo body | mail -s Test [email protected] 
+0

위와 같이 : 기여자는 무엇입니까? - 사람들 (여기 에릭과 그레이엄)은 ** 뉴스 레터 **에 ** 게시 할 수 있습니까? – u003f