0

I am very new to ubuntu and I have followed the following guide to configure email for my domain philipgonzales.net.

https://www.neowin.net/forum/topic/1206123-how-to-run-your-own-email-server-with-your-own-domain-parts-i-ii-iii/

I have somehow managed to get email sending and receiving and for this I am greatly happy. I can receive emails from my gmail and also send emails to my gmail. I can also send emails to my work email but I cannot receive emails from my work email.

Just an FYI I am sending from a residential internet account so I do not have a PTR record but I do plan on switching to a business account to get static IP(s) and the ability to create PTR records.

The guide called for setting up CLAM AV but it said it was optional so I did not complete that setup. Not sure if that matters.

Apr 28 18:09:46 mailbox postfix/postfix-script[9926]: stopping the Postfix mail system 
Apr 28 18:09:46 mailbox postfix/master[9726]: terminating on signal 15 
Apr 28 18:09:46 mailbox postfix/postfix-script[10027]: starting the Postfix mail system 
Apr 28 18:09:46 mailbox postfix/master[10029]: daemon started -- version 2.11.0, configuration /etc/postfix 
Apr 28 18:11:09 mailbox postfix/smtpd[10043]: connect from us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:09 mailbox postfix/smtpd[10043]: warning: connect to Milter service unix:/clamav/clamav-milter.ctl: No such file or directory 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: SSL_accept error from us-smtp-delivery-138.mimecast.com[216.205.24.138]: 0 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: warning: TLS library problem: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown:s3_pkt.c:1278:SSL alert number 46: 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: lost connection after STARTTLS from us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: disconnect from us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: connect from us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: warning: connect to Milter service unix:/clamav/clamav-milter.ctl: No such file or directory 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: 84E2C2C16E6: client=us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:10 mailbox postfix/cleanup[10048]: 84E2C2C16E6:message-id=<OF1F36186C.E516DF53-ON86258110.007F4236-86258110.007F4B2C@frost-global> 
Apr 28 18:11:10 mailbox spamd[3686]: spamd: got connection over /var/spool/postfix/spamassassin/spamd.sock 
Apr 28 18:11:10 mailbox spamd[3686]: spamd: processing message <OF1F36186C.E516DF53-ON86258110.007F4236-86258110.007F4B2C@frost-global> for philip:1001 
Apr 28 18:11:12 mailbox spamd[3686]: spamd: clean message (-2.3/5.0) for philip:1001 disconnect from us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: connect from us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: warning: connect to Milter service unix:/clamav/clamav-milter.ctl: No such file or directory 
Apr 28 18:11:10 mailbox postfix/smtpd[10043]: 84E2C2C16E6: client=us-smtp-delivery-138.mimecast.com[216.205.24.138] 
Apr 28 18:11:10 mailbox postfix/cleanup[10048]: 84E2C2C16E6: message-id=<OF1F36186C.E516DF53-ON86258110.007F4236-86258110.007F4B2C@frost-global> 
Apr 28 18:11:10 mailbox spamd[3686]: spamd: got connection over /var/spool/postfix/spamassassin/spamd.sock Apr 28 18:11:10 mailbox spamd[3686]: spamd:processing message <OF1F36186C.E516DF53-ON86258110.007F4236-86258110.007F4B2C@frost-global> for philip:1001 
Apr 28 18:11:12 mailbox spamd[3686]: spamd: clean message (-2.3/5.0) for philip:1001 in 1.9 seconds, 73237 bytes. 
Apr 28 18:11:12 mailbox spamd[3686]: spamd: result: . -2 -HTML_IMAGE_ONLY_32,HTML_MESSAGE,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIK$ scantime=1.9,size=73237,user=philip,uid=1001,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=/$ autolearn_force=no 
Apr 28 18:11:12 mailbox postfix/qmgr[10031]: 84E2C2C16E6:from=<philip.gonzales@frost.com>, size=73176, nrcpt=1 (queue active) 
Apr 28 18:11:12 mailbox dovecot: lda(philip@philipgonzales.net): sieve: msgid=<OF1F36186C.E516DF53-ON86258110.007F4236-86258110.007F4B2C@frost-global>: marked message to be discarded if not explicitly delivered (discard action) 
Apr 28 18:11:12 mailbox postfix/pipe[10051]: 84E2C2C16E6: to=<philip@philipgonzales.net>, relay=dovecot, delay=2.6, delays=2.6/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service) 
Apr 28 18:11:12 mailbox postfix/qmgr[10031]: 84E2C2C16E6: removed Apr 28 18:11:12 mailbox postfix/smtpd[10043]:disconnect from us-smtp-delivery-138.mimecast.com[216.205.24.138]


Apr 28 18:11:48 mailbox postfix/smtpd[10043]: disconnect from mail-qk0-f170.google.com[209.85.220.170]
Apr 28 18:14:46 mailbox postfix/qmgr[10031]: 3713F2C16E3: from=<>, size=2650, nrcpt=1 (queue active)
Apr 28 18:14:46 mailbox dovecot: lda(philip): Error: User initialization failed: Initializing mail stor$
Apr 28 18:14:46 mailbox dovecot: lda(philip): Fatal: Invalid user settings. Refer to server log for mor$
Apr 28 18:14:46 mailbox postfix/local[10058]: 3713F2C16E3: to=<philip@mailbox.philipgonzales.net>, rela$
Apr 28 18:15:08 mailbox postfix/anvil[10046]: statistics: max connection rate 2/60s for (smtp:216.205.2$
Apr 28 18:15:08 mailbox postfix/anvil[10046]: statistics: max connection count 1 for (smtp:216.205.24.1$
Apr 28 18:15:08 mailbox postfix/anvil[10046]: statistics: max cache size 2 at Apr 28 18:11:46
Apr 28 18:24:46 mailbox dovecot: lda(philip): Error: User initialization failed: Initializing mail stor$
Apr 28 18:24:46 mailbox dovecot: lda(philip): Fatal: Invalid user settings. Refer to server log for mor$
Apr 28 18:24:46 mailbox postfix/local[10070]: 3713F2C16E3: to=<philip@mailbox.philipgonzales.net>, rela$

There are also some messages that say fatal invalid user setting. Any ideas?

Please let me know which configs I should post if any.

1
0

I found my problem. I looked back through my guide and I see that I set up the default sieve filters that the guide suggested.

require ["envelope", "fileinto", "imap4flags", "regex"];

# Grab bills before anything else
if anyof (envelope :contains "From" "@alerts.comcast.net",
          envelope "From" "noreply@txu.com") {
    fileinto "Bills";
    stop;
}

# I don't even want to see spam higher than level 10
if header :contains "X-Spam-Level" "**********" {
    discard;
    stop;
}

# Twitter? Die in a fire.
if anyof (envelope "From" "bounce@tweet.twitter.com",
          envelope :contains "From" "@bounce.twitter.com") {
    discard;
    stop;
}

# Trash messages with improperly formed message IDs
if not header :regex "message-id" ".*@.*\\." {
    discard;
    stop;
}

# File low-level spam in spam bucket, and viruses in Infected folder
if anyof (header :contains "X-Spam-Level" "*****",
          header :contains "X-Virus-Status" "Infected") {
    if header :contains "X-Spam-Level" "*****" {
        fileinto "Junk";
        setflag "\\Seen";
    }
    else {
        fileinto "Infected";
    }
}

I commented out the section about improperly formed message ID's. My company uses lotus notes, so I am guessing that is why?

Anyways I guess that solves this one. I still am thinking my configurations may be a little wonky. If anyone is interested in seeing my logs/configs and going over them I would love to post them. I may need a little bit of help knowing what exactly to post. Just let me know.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.