Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpamAssassin Invalid cross-device link #14

Open
sandeepb1 opened this issue Jan 18, 2022 · 0 comments
Open

SpamAssassin Invalid cross-device link #14

sandeepb1 opened this issue Jan 18, 2022 · 0 comments

Comments

@sandeepb1
Copy link

When enabling the spam_filter option in config and installing spamassassin I am presented with an error whenever MailWay scans an incoming email.

This looks like Spam Assassin not liking the fact it has to scan a file in the /run directory, when re-running the command to the original /tmp location everything works without issue.

Jan 18 15:12:24 lev forwarding[7568]: time="2022-01-18T15:12:24Z" level=info msg="172.104.20.135 WROTE 250 2.1.5 Ok"
Jan 18 15:12:24 lev forwarding[7568]: time="2022-01-18T15:12:24Z" level=info msg="172.104.20.135 READ DATA"
Jan 18 15:12:24 lev forwarding[7568]: time="2022-01-18T15:12:24Z" level=info msg="172.104.20.135 WROTE 354 Start mail input; end with <CR><LF>.<CR><LF>"
Jan 18 15:12:24 lev forwarding[7568]: time="2022-01-18T15:12:24Z" level=info msg="run Spamassassin"
Jan 18 15:12:24 lev forwarding[20418]: Traceback (most recent call last):
Jan 18 15:12:24 lev forwarding[20418]:   File "/usr/local/spamc.py", line 25, in <module>
Jan 18 15:12:24 lev forwarding[20418]:     raise e
Jan 18 15:12:24 lev forwarding[20418]:   File "/usr/local/spamc.py", line 22, in <module>
Jan 18 15:12:24 lev forwarding[20418]:     os.replace(ftmp.name, emailfile)
Jan 18 15:12:24 lev forwarding[20418]: OSError: [Errno 18] Invalid cross-device link: '/tmp/tmpvdehya28' -> '/run/mailway/5c88808b-94b8-4ecb-b8d0-29f821286541.eml'
Jan 18 15:12:24 lev forwarding[7568]: time="2022-01-18T15:12:24Z" level=error msg="could not run spam filter: failed to run spamc.py: exit status 1"
Jan 18 15:12:24 lev forwarding[7568]: time="2022-01-18T15:12:24Z" level=info msg="172.104.20.135 WROTE 451 4.3.0 Internal server errror (message 5c88808b-94b8-4ecb-b8d0-29f821286541)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant