I have a remote server running CentOS-6.4 in another country.
I was running sendmail/procmail on this machine
but recently changed to postfix/amavis/clamd .

Email is no longer being sent from the remote server
(eg by ddclient), I assume because it is sent
from ddclient@localhost.localdomain .
(I give the entries in /var/log/maillog below.)

The full name of the server is alfred.gayleard.eu .
I believe that my ISP in Italy (where the server is situated)
requires me to give my From address as gayle...@alice.it 
when sending email, though I may be wrong about that.

I'd be very grateful if someone could tell me the changes I need to make
to the files in /etc/postfix .

The changes I've made to main.cf are given in this diff file:
---------------------------------------------
[tim@alfred postfix]$ diff main.cf main.cf.orig 
77,78d76
< #myhostname = localhost.localdomain
< myhostname = alfred.gayleard.eu
86,87d83
< #mydomain = localdomain
< mydomain = gayleard.eu
104d99
< myorigin = alice.it
121,122c116
< #inet_interfaces = localhost
< inet_interfaces = all
---
> inet_interfaces = localhost
170c164
< #mydestination = $myhostname, localhost.$mydomain, localhost
---
> mydestination = $myhostname, localhost.$mydomain, localhost
174d167
< mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
274d266
< mynetworks = 192.168.2.0/24, 127.0.0.0/8
305d296
< relay_domains = 
429d419
< home_mailbox = Maildir/
687,691d676
< 
< # added by TGM
< content_filter=amavisfeed:[127.0.0.1]:10024
---------------------------------------------

Apologies for this rather long request for help.
I would be most grateful for any help or advice you might be able to give me.

Maillog entry for ddclient:
---------------------------------------------
Sep 11 07:37:22 alfred postfix/qmgr[15529]: 65BAE2309D5: 
from=<ddclient@localhost.localdomain>, size=784, nrcpt=1 (queue active)
Sep 11 07:37:22 alfred amavis[17266]: (17266-01) LMTP::10024 
/var/spool/amavisd/tmp/amavis-20130911T073722-17266-4IBNRfPh: 
<ddclient@localhost.localdomain> -> <tim@localhost.localdomain> SIZE=784 
Received: from alfred.gayleard.eu ([127.0.0.1]) by localhost 
(localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with LMTP for 
<tim@localhost.localdomain>; Wed, 11 Sep 2013 07:37:22 +0200 (CEST)
Sep 11 07:37:22 alfred amavis[17266]: (17266-01) Checking: RFbVYVx6KI50 MYNETS 
[127.0.0.1] <ddclient@localhost.localdomain> -> <tim@localhost.localdomain>
Sep 11 07:37:33 alfred amavis[17266]: (17266-01) dkim: candidate originators: 
From:<ddclient@localhost.localdomain>
Sep 11 07:37:33 alfred amavis[17266]: (17266-01) dkim: not signing, empty 
signing domain, From: <ddclient@localhost.localdomain>
Sep 11 07:37:33 alfred postfix/qmgr[15529]: 72018230C6D: 
from=<ddclient@localhost.localdomain>, size=1263, nrcpt=1 (queue active)
Sep 11 07:37:33 alfred amavis[17266]: (17266-01) FWD from 
<ddclient@localhost.localdomain> -> <tim@localhost.localdomain>,BODY=7BIT 250 
2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 72018230C6D
Sep 11 07:37:33 alfred amavis[17266]: (17266-01) Passed CLEAN 
{RelayedInternal}, MYNETS LOCAL [127.0.0.1]:54623 [127.0.0.1] 
<ddclient@localhost.localdomain> -> <tim@localhost.localdomain>, Message-ID: 
<201309110537.r8B5bM8w017743@localhost.localdomain>, mail_id: RFbVYVx6KI50, 
Hits: -2.652, size: 784, queued_as: 72018230C6D, 11034 ms
Sep 11 07:37:34 alfred postfix/smtp[17753]: BBA4E230C7C: 
to=<ddclient@localhost.localdomain>, relay=none, delay=0.21, 
delays=0.05/0/0.16/0, dsn=5.4.4, status=bounced (Host or domain name not 
found. Name service error for name=localhost.localdomain type=AAAA: Host not 
found)
---------------------------------------------

-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
School of Mathematics, Trinity College, Dublin 2, Ireland

Reply via email to